Skip to content

Commit

Permalink
ci: use matrix for build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed May 3, 2023
1 parent a4784e7 commit ad43eff
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@ jobs:
with:
name: mrcjkb
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix flake check --print-build-logs
- run: nix flake check -L

shell:
runs-on: ubuntu-latest
build:
name: ${{ matrix.attribute }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
attribute:
- .#neorocks
- .#devShells.x86_64-linux.default
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v12
with:
name: mrcjkb
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build .#devShells.x86_64-linux.default --print-build-logs
- run: nix build "${{matrix.attribute}}" -L

0 comments on commit ad43eff

Please sign in to comment.