Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 21 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,29 +92,43 @@ jobs:
matrix:
include:
- runner: ubuntu-latest
goos: linux
goarch: amd64
asset_name: scip-linux-amd64
- runner: ubuntu-latest-arm
- runner: ubuntu-latest
goos: linux
goarch: arm64
asset_name: scip-linux-arm64
- runner: macos-13
asset_name: scip-darwin-amd64
- runner: macos-latest
goos: darwin
goarch: arm64
asset_name: scip-darwin-arm64
- runner: macos-latest
goos: darwin
goarch: amd64
asset_name: scip-darwin-amd64

runs-on: ${{ matrix.runner }}

steps:
- uses: actions/checkout@v6
with:
ref: v${{ inputs.version }}
- uses: DeterminateSystems/nix-installer-action@v21
- uses: DeterminateSystems/magic-nix-cache-action@v13
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Build
run: nix build .#scip
env:
CGO_ENABLED: '0'
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
GOWORK: 'off'
run: go build -ldflags '-X main.Reproducible=true' -o scip ./cmd/scip
- name: Package
env:
ASSET: ${{ matrix.asset_name }}
run: |
tar czf "$ASSET.tar.gz" -C result/bin scip -C "$GITHUB_WORKSPACE" LICENSE
tar czf "$ASSET.tar.gz" scip LICENSE
sha256sum "$ASSET.tar.gz" > "$ASSET.tar.gz.sha256" 2>/dev/null || \
shasum -a 256 "$ASSET.tar.gz" > "$ASSET.tar.gz.sha256"
- name: Upload release assets
Expand Down
Loading