Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Use nix-build-uncached to speed up CI jobs #2747

Merged
merged 4 commits into from
Aug 24, 2021
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- uses: cachix/install-nix-action@v13

- run: nix-env -iA nix-build-uncached -f nix/

# We are using the ic-hs-test cachix cache that is also used by
# dfinity/ic-hs. This is partly laziness (on need to set up a separate
# cache), but also to get the ic-ref-test binary without rebuilding
Expand All @@ -31,7 +33,7 @@ jobs:
- run: cachix watch-store ic-hs-test &

- name: "nix-build"
run: nix-build --max-jobs 4 -A all-systems-go
run: nix-build-uncached --max-jobs 4 -A all-systems-go

- name: Calculate performance delta
if: runner.os == 'Linux' && github.event_name == 'pull_request'
Expand Down