Skip to content

Commit 511c611

Browse files
committed
WIP: buf build
1 parent e2f25be commit 511c611

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,13 @@ jobs:
3131
- name: Install buf
3232
run: |
3333
BUF_VERSION=1.53.0
34-
# buf is installed to ~/bin/your-project-name.
35-
BIN_DIR=$HOME/bin/$PROJECT
36-
3734
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"
35+
"https://github.githubassets.com/buf-v$BUF_VERSION-$(uname -s)-$(uname -m)" \
36+
-o /usr/local/bin/buf
37+
chmod +x /usr/local/bin/buf
4138
4239
- name: Add buf to PATH
43-
run: echo "$HOME/bin/$PROJECT" >> $GITHUB_PATH
40+
run: echo "/usr/local/bin" >> $GITHUB_PATH
4441

4542
- name: Check buf version
4643
run: buf --version

0 commit comments

Comments
 (0)