Skip to content

Commit

Permalink
Pass package target from build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
bromanko committed Feb 26, 2024
1 parent e37fee6 commit 3838d33
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ jobs:

strategy:
matrix:
include:
- {GOOS: linux, GOARCH: amd64}
- {GOOS: linux, GOARCH: arm, GOARM: 6}
- {GOOS: linux, GOARCH: arm64}
- {GOOS: darwin, GOARCH: amd64 }
- {GOOS: darwin, GOARCH: arm64 }
package: ["age-plugin-op-linux-arm64", "age-plugin-op-linux-arm32", "age-plugin-op-linux-amd64",
"age-plugin-op-darwin-amd64", "age-plugin-op-darwin-arm64"]

steps:
- name: Checkout repository
Expand All @@ -35,7 +31,7 @@ jobs:
diagnostic-endpoint: ""

- name: Build
run: nix build -L
run: nix build .${{ matrix.package }} -L

- name: Verify build
run: ./result/bin/age-plugin-op --help

0 comments on commit 3838d33

Please sign in to comment.