Skip to content

Commit

Permalink
fix(ci): Use accept-flake-config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Jan 7, 2025
1 parent ea049a6 commit 1e5115d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/check-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/install-nix-action@v30
with:
extra_nix_config: |
extra-platforms = ${{ matrix.extraPlatforms }}
accept-flake-config = true
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v15
with:
Expand All @@ -24,4 +28,4 @@ jobs:
fail-mode: true
send-statistics: false
- name: Run nix flake check
run: nix flake check --accept-flake-config
run: nix flake check
3 changes: 2 additions & 1 deletion .github/workflows/nix-build-and-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ jobs:
with:
extra_nix_config: |
extra-platforms = ${{ matrix.extraPlatforms }}
accept-flake-config = true
- 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 }} --accept-flake-config
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 }}

0 comments on commit 1e5115d

Please sign in to comment.