Skip to content

Commit

Permalink
Use nix-build-uncached
Browse files Browse the repository at this point in the history
this should noticably speed up CI runs that don’t have to build
everything (e.g. when only tests change). Tried and proven in Motoko
already (dfinity/motoko#2747)
  • Loading branch information
nomeata authored and marcin-dziadus committed Sep 15, 2021
1 parent c49a2f4 commit a455060
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,23 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v13
- run: nix-env -iA nix-build-uncached -f nix/
- uses: cachix/cachix-action@v10
with:
name: ic-hs-test
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# until https://github.com/cachix/cachix-action/issues/86 is fixed:
- run: cachix watch-store ic-hs-test &

- run: nix-build -A universal-canister
- run: nix-build -A ic-hs
- run: nix-build -A ic-hs-coverage
- run: nix-build -A coverage
- run: nix-build -A check-generated
- run: nix-build -A check-cabal-freeze
- run: nix-build -A ic-ref-dist
- run: nix-build -A ic-ref-test
- run: nix-build -A ic-hs-shell
# run a few targets explicitly, to get easier signal in the CI view
- run: nix-build-uncached -A universal-canister
- run: nix-build-uncached -A ic-hs
- run: nix-build-uncached -A ic-hs-coverage
- run: nix-build-uncached -A coverage
- run: nix-build-uncached -A check-generated
- run: nix-build-uncached -A check-cabal-freeze
- run: nix-build-uncached -A ic-ref-dist
- run: nix-build-uncached -A ic-ref-test
- run: nix-build-uncached -A ic-hs-shell
# now the rest
- run: nix-build
- run: nix-build-uncached

0 comments on commit a455060

Please sign in to comment.