Skip to content

Commit

Permalink
Fix CI workflow to accept flake config (#159)
Browse files Browse the repository at this point in the history
Rather than relying on the nix config settings. This is more robust and
also they were incomplete, so we were getting jobs hanging because
things weren't cached.
  • Loading branch information
michaelpj authored Mar 15, 2023
1 parent f41c192 commit 09ba902
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
substituters = https://cache.iog.io https://cache.nixos.org https://foliage.cachix.org
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= foliage.cachix.org-1:kAFyYLnk8JcRURWReWZCatM9v3Rk24F5wNMpEj14Q/g=
accept-flake-config = true
- name: Run checks
run: nix develop -c ./scripts/check.sh
Expand All @@ -39,8 +38,7 @@ jobs:
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
substituters = https://cache.iog.io https://cache.nixos.org https://foliage.cachix.org
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= foliage.cachix.org-1:kAFyYLnk8JcRURWReWZCatM9v3Rk24F5wNMpEj14Q/g=
accept-flake-config = true
- name: Checkout main
uses: actions/checkout@v3
Expand Down

0 comments on commit 09ba902

Please sign in to comment.