Skip to content

Commit

Permalink
refactor(github-actions): add caching stable
Browse files Browse the repository at this point in the history
  • Loading branch information
dvtfl committed Jun 9, 2024
1 parent 954a3d8 commit 04ccf75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/nix-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,16 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- name: Build "${{ matrix.attr }}"
- name: \[unstable\] Build "${{ matrix.attr }}"
run: nix build -L ".#${{ matrix.attr }}"

nix-build-stable:
needs: nix-matrix
runs-on: ${{ matrix.os }}
strategy:
matrix: ${{fromJSON(needs.nix-matrix.outputs.matrix)}}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- name: \[stable\] Build "${{ matrix.attr }}"
run: nix build --inputs-from . --override-input nixpkgs stable -L ".#${{ matrix.attr }}"
4 changes: 2 additions & 2 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 04ccf75

Please sign in to comment.