mirror of
https://github.com/Valkyrie00/bold-brew.git
synced 2026-03-14 14:25:53 +01:00
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.
55 lines
No EOL
1.2 KiB
YAML
55 lines
No EOL
1.2 KiB
YAML
name: Quality
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
linter:
|
|
name: golangci-lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.25'
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v8
|
|
with:
|
|
version: v2.5.0
|
|
skip-cache: true
|
|
|
|
build:
|
|
name: Build
|
|
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
|
|
with:
|
|
go-version: '1.25'
|
|
- name: Get dependencies
|
|
run: go mod download
|
|
- name: Build
|
|
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 |