Skip to content

Commit

Permalink
fix(ci): Ensure nix-community cache is used
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Jan 7, 2025
1 parent bae8029 commit ea049a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/check-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,16 @@ jobs:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v15
with:
name: mrjones2014-dotfiles
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Add nix-community cache
run: cachix use nix-community
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v9
with:
fail-mode: true
send-statistics: false
- name: Run nix flake check
run: nix flake check
run: nix flake check --accept-flake-config
6 changes: 3 additions & 3 deletions .github/workflows/nix-build-and-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
with:
extra_nix_config: |
extra-platforms = ${{ matrix.extraPlatforms }}
- uses: cachix/cachix-action@v15
with:
name: mrjones2014-dotfiles
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Add nix-community cache
run: cachix use nix-community
- name: build all definitions
run: nix run github:Mic92/nix-fast-build -L -- --skip-cached --no-download --no-nom --eval-workers 1 --eval-max-memory-size 2048 --flake .#checks.${{ matrix.system }}
run: nix run github:Mic92/nix-fast-build -L -- --skip-cached --no-download --no-nom --eval-workers 1 --eval-max-memory-size 2048 --flake .#checks.${{ matrix.system }} --accept-flake-config

0 comments on commit ea049a6

Please sign in to comment.