mirror of
https://github.com/Valkyrie00/bold-brew.git
synced 2026-03-14 22:35:53 +01:00
chore: add binary artifact (#38)
Some checks failed
Some checks failed
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:
parent
750caac75b
commit
e22b82cc67
1 changed files with 20 additions and 2 deletions
22
.github/workflows/quality.yml
vendored
22
.github/workflows/quality.yml
vendored
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue