Skip to content

Commit

Permalink
chore: atlernative cache strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
kobyhallx committed Sep 21, 2023
1 parent 7830873 commit 7ec1659
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,37 @@ jobs:
repository: noir-lang/acvm
path: acvm

- name: Setup Nix
uses: cachix/install-nix-action@v22
- uses: nixbuild/nix-quick-install-action@v25
with:
nix_path: nixpkgs=channel:nixos-23.05
github_access_token: ${{ secrets.GITHUB_TOKEN }}

- uses: cachix/cachix-action@v12
nix_conf: |
substituters = https://cache.nixos.org/ https://nix-community.cachix.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
keep-outputs = true
- name: Restore and cache Nix store - ${{ matrix.id }}
uses: ./.
with:
name: barretenberg
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
# save a new cache every time ci file changes
key: ${{ runner.os }}-flake-wasm-${{ hashFiles('*.lock') }}
restore-keys: |
${{ runner.os }}-flake-wasm
gc-linux: true
gc-max-store-size-linux: 1000000000
purge-caches: true
purge-key: ${{ runner.os }}-flake-wasm
purge-created: true
purge-created-max-age: 42
# - name: Setup Nix
# uses: cachix/install-nix-action@v22
# with:
# nix_path: nixpkgs=channel:nixos-23.05
# github_access_token: ${{ secrets.GITHUB_TOKEN }}

# - uses: cachix/cachix-action@v12
# with:
# name: barretenberg
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"


- name: Build noir_wasm package
Expand Down

0 comments on commit 7ec1659

Please sign in to comment.