Skip to content

WIP: buf build

WIP: buf build #1

---
name: Ubuntu build - buf edition
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: write
strategy:
fail-fast: true
matrix:
go-version: [1.24.x]
python3_version: [ "3.11", "3.12" ]
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: go.sum
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python3_version }}
- name: Install buf
run: |
BUF_VERSION=1.53.0
# buf is installed to ~/bin/your-project-name.
BIN_DIR=$HOME/bin/$PROJECT
curl -sSL \
"https://github.com/bufbuild/buf/releases/download/v$BUF_VERSION/buf-$(uname -s)-$(uname -m)" \
-o "$BIN_DIR/buf"
chmod +x "$BIN_DIR/buf"
- name: Add buf to PATH
run: echo "$HOME/bin/$PROJECT" >> $GITHUB_PATH
- name: Check buf version
run: buf --version
- name: Build using 'uv_buf_build_script.sh'
run: |
chmod +x ./uv_buf_build_script.sh
./uv_buf_build_script.sh