From e22b82cc677e8c58240440c1946a34c46e9e1935 Mon Sep 17 00:00:00 2001 From: Vito Castellano Date: Sat, 22 Nov 2025 01:24:34 +0100 Subject: [PATCH] chore: add binary artifact (#38) Build and upload test binaries for Linux (amd64) and macOS (arm64) as GitHub Actions artifacts. These are only accessible via PR checks and expire after 7 days, allowing reviewers to test without building from source. --- .github/workflows/quality.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 0eb4189..2f29186 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -25,7 +25,15 @@ jobs: build: name: Build - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + include: + - os: ubuntu-latest + artifact_name: bbrew-linux-amd64 + - os: macos-latest + artifact_name: bbrew-darwin-arm64 + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 @@ -34,4 +42,14 @@ jobs: - name: Get dependencies run: go mod download - name: Build - run: go build -v ./... \ No newline at end of file + run: go build -v ./... + - name: Build binary for testing + run: | + go build -o bbrew ./cmd/bbrew + chmod +x bbrew + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.artifact_name }} + path: bbrew + retention-days: 7 \ No newline at end of file