Skip to content

Commit 409f4c2

Browse files
committed
WIP: buf build
1 parent e2f25be commit 409f4c2

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.github/workflows/build-golang-ubuntu-buf.yaml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,33 @@ jobs:
2323
go-version: ${{ matrix.go-version }}
2424
cache-dependency-path: go.sum
2525

26-
- name: Set up Python
27-
uses: actions/setup-python@v4
26+
# - name: Set up Python
27+
# uses: actions/setup-python@v4
28+
# with:
29+
# python-version: ${{ matrix.python3_version }}
30+
31+
- name: Install the latest version of uv
32+
uses: astral-sh/setup-uv@v6
2833
with:
34+
version: "latest"
2935
python-version: ${{ matrix.python3_version }}
3036

37+
# Download a release like https://github.com/bufbuild/buf/releases/download/v1.53.0/buf-Linux-x86_64
3138
- name: Install buf
3239
run: |
33-
BUF_VERSION=1.53.0
34-
# buf is installed to ~/bin/your-project-name.
35-
BIN_DIR=$HOME/bin/$PROJECT
36-
37-
curl -sSL \
38-
"https://github.com/bufbuild/buf/releases/download/v$BUF_VERSION/buf-$(uname -s)-$(uname -m)" \
39-
-o "$BIN_DIR/buf"
40-
chmod +x "$BIN_DIR/buf"
40+
BUF_VERSION="1.53.0"
41+
BUF_URL="https://github.com/bufbuild/buf/releases/download/v1.53.0/buf-Linux-x86_64"
42+
curl -sSL "$BUF_URL" -o /usr/local/bin/buf
43+
chmod +x /usr/local/bin/buf
4144
4245
- name: Add buf to PATH
43-
run: echo "$HOME/bin/$PROJECT" >> $GITHUB_PATH
46+
run: echo "/usr/local/bin" >> $GITHUB_PATH
4447

4548
- name: Check buf version
4649
run: buf --version
4750

4851
- name: Build using 'uv_buf_build_script.sh'
4952
run: |
53+
cd build-scripts/
5054
chmod +x ./uv_buf_build_script.sh
5155
./uv_buf_build_script.sh

0 commit comments

Comments
 (0)