Skip to content

Commit

Permalink
Fix matrix reference
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Nov 1, 2023
1 parent ba40540 commit f55de7c
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,34 @@ jobs:
build:
strategy:
matrix:
os:
runner:
# - macos-latest
- ubuntu-latest
packages:
- os: ubuntu-latest
system: x86_64-linux
package:
- name: terraform-1_6_2
version: 1.6.2
allow_unfree: 1
- name: terraform-1_6_1
version: 1.6.1
allow_unfree: 1
- name: terraform-1_6_0
version: 1.6.0
allow_unfree: 1
- name: terraform-1_5_7
version: 1.5.7
allow_unfree: 0

runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.runner.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
- uses: cachix/cachix-action@v12
with:
name: nixpkgs-terraform
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: nix build --impure .\#${{ matrix.package.name }}
- run: nix build --impure .#${{ matrix.package.name }}
id: nix_build
env:
NIXPKGS_ALLOW_UNFREE: ${{ matrix.package.allow_unfree }}
# - run: cachix pin nixpkgs-terraform v${{ matrix.package.version }}-${{ matrix.runner.system }} ${{ join(steps.nix_build.outputs.*) }}

0 comments on commit f55de7c

Please sign in to comment.