-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: cache Nix store with cache-nix-action (#2992)
* ci: try nix-community/cache-nix-action * ci: add cache-id param to setup-nix action * ci: tidy up cache keys for non-nix jobs * ci: merge-nix-caches-linux job * ci: merge caches other way around * ci: reduce number of caches Should prevent disk overflow * ci: change cache id prefix for merge * ci: comment out cache merging job * ci: revert cache id prefix * ci: setup-nix: use latest cache-nix-action Among others, makes action logs look more tidy (see nix-community/cache-nix-action@17d19d3) * ci: use test-pg cache key for loadtest
- Loading branch information
Showing
3 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,23 @@ inputs: | |
description: Token to pass to cachix | ||
tools: | ||
description: Tools to install with nix-env -iA <tools> | ||
cache-id: | ||
description: Cache id to use for cache-nix-action | ||
default: "default" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: cachix/install-nix-action@v23 | ||
- uses: nixbuild/nix-quick-install-action@v26 | ||
with: | ||
install_url: https://releases.nixos.org/nix/nix-2.13.3/install | ||
nix_version: '2.13.6' | ||
- name: Restore and cache Nix store | ||
uses: nix-community/[email protected] | ||
with: | ||
key: cache-nix-${{ runner.os }}-id-${{ inputs.cache-id }}-${{ hashFiles('nix/**/*.nix') }} | ||
restore-keys: | | ||
cache-nix-${{ runner.os }}-common- | ||
restore-key-hit: true | ||
- uses: cachix/cachix-action@v12 | ||
with: | ||
name: postgrest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters