Skip to content

Commit

Permalink
ci: Improve performance for nix jobs in CI
Browse files Browse the repository at this point in the history
Defaulting to max-jobs = auto should improve build times by using more
cores.

Setting always-allow-substitutes to true should cause all nix
derivations to be cached on cachix, which should improve performance of
the MacOS job dramatically, when no rebuilds need to happen.
wolfgangwalther committed May 7, 2024
1 parent cb6151e commit 1374178
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/setup-nix/action.yaml
Original file line number Diff line number Diff line change
@@ -12,6 +12,10 @@ runs:
using: composite
steps:
- uses: nixbuild/nix-quick-install-action@60e9c39264d4714139af3cdf15f691b19eec3530 # v28
with:
nix_conf: |-
always-allow-substitutes = true
max-jobs = auto
- uses: cachix/cachix-action@18cf96c7c98e048e10a83abd92116114cd8504be # v14
with:
name: postgrest

0 comments on commit 1374178

Please sign in to comment.