Skip to content

Commit

Permalink
Merge pull request #18 from esselius/change-nix-install-action-and-ad…
Browse files Browse the repository at this point in the history
…d-extra-cache

(ci) Change nix install action and add extra cache layer
  • Loading branch information
esselius authored Jul 17, 2024
2 parents e0749d2 + 006e2bf commit 84795fe
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/darwin-rebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ jobs:

- uses: DeterminateSystems/nix-installer-action@main

- uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-darwin-${{ matrix.host }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-darwin-${{ matrix.host }}-
nix: true
paths: |
/nix/store
~/.cache/nix
~root/.cache/nix
- uses: cachix/cachix-action@v15
with:
name: esselius
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flake-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: DeterminateSystems/nix-installer-action@main
- uses: nixbuild/nix-quick-install-action@v28

- uses: DeterminateSystems/flake-checker-action@main
10 changes: 8 additions & 2 deletions .github/workflows/nixos-rebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@ jobs:

- uses: docker/setup-qemu-action@v3

- uses: DeterminateSystems/nix-installer-action@main
- uses: nixbuild/nix-quick-install-action@v28
with:
extra-conf: "extra-platforms = aarch64-linux"
nix_conf: extra-platforms = aarch64-linux

- uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-nixos-${{ matrix.host }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-nixos-${{ matrix.host }}-
nix: true

- uses: cachix/cachix-action@v15
with:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/nixos-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: DeterminateSystems/nix-installer-action@main
- uses: nixbuild/nix-quick-install-action@v28

- uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-tests-${{ matrix.test }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-tests-${{ matrix.test }}-
nix: true

- uses: cachix/cachix-action@v15
with:
Expand Down

0 comments on commit 84795fe

Please sign in to comment.