fix(cicd): install buf from GitHub releases instead of broken buf-bin repo
CI/CD Stage / stage (push) Failing after 25s

This commit is contained in:
2026-08-06 21:18:06 +03:30
parent 69face9689
commit 30aab95555
2 changed files with 28 additions and 11 deletions
+12 -1
View File
@@ -24,8 +24,19 @@ jobs:
uses: ./.gitea/actions/setup-mirrors
- name: Setup Buf CLI
run: |
cp buf-bin/buf /usr/local/bin/buf
BUF_VERSION=1.72.0
ARCH="$(uname -m)"
case "$ARCH" in
x86_64) BIN="buf-Linux-x86_64" ;;
aarch64) BIN="buf-Linux-aarch64" ;;
arm64) BIN="buf-Darwin-arm64" ;;
*) BIN="buf-Linux-x86_64" ;;
esac
curl -sSL "https://github.com/bufbuild/buf/releases/download/v${BUF_VERSION}/${BIN}.tar.gz" -o buf.tar.gz
tar -xzf buf.tar.gz
cp buf /usr/local/bin/buf
chmod +x /usr/local/bin/buf
rm -rf buf buf.tar.gz buf-bin
- name: Lint
run: buf lint
- name: Build