chore: add binary artifact (#38)
Some checks failed
Quality / golangci-lint (push) Has been cancelled
Quality / Build (push) Has been cancelled
Quality / Build-1 (push) Has been cancelled
Security / Go Vulnerability Check (push) Has been cancelled
Security / Security Scanner (push) Has been cancelled

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.
This commit is contained in:
Vito Castellano 2025-11-22 01:24:34 +01:00 committed by GitHub
commit e22b82cc67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 ./...
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