Skip to content

Commit

Permalink
Update nix.yml to fix Mac runner cache
Browse files Browse the repository at this point in the history
nix builds will behave correctly like this
  • Loading branch information
DevopsGoth authored Aug 29, 2023
1 parent bc9112c commit 0a33fab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: Build and cache with Nix
on:
workflow_dispatch:
push:
paths-ignore:
- '.github/**'


jobs:
build-and-cache:
Expand All @@ -19,7 +16,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up Nix with caching
uses: kadena-io/setup-nix-with-cache@v2
uses: kadena-io/setup-nix-with-cache/by-root@v3
with:
cache_url: s3://nixcache.chainweb.com?region=us-east-1
signing_private_key: ${{ secrets.NIX_CACHE_PRIVATE_KEY }}
Expand All @@ -31,6 +28,9 @@ jobs:
aws-secret-access-key: ${{ secrets.NIX_CACHE_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Give root user AWS credentials
uses: kadena-io/setup-nix-with-cache/copy-root-aws-credentials@v3

- name: Build and cache artifacts
timeout-minutes: 740
run: |
Expand Down

0 comments on commit 0a33fab

Please sign in to comment.