Skip to content

Commit

Permalink
Update nix.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DevopsGoth authored Aug 18, 2023
1 parent c8e2915 commit d754d40
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,23 @@ name: Build and cache with Nix
on:
workflow_dispatch:
push:
paths-ignore:
- '.github/**'


jobs:
build-and-cache:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, mac-m1]
os: [ubuntu-latest, mac-m1]
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Nix with caching
uses: kadena-io/setup-nix-with-cache@v2.1
uses: kadena-io/setup-nix-with-cache@v2
with:
cache_url: s3://nixcache.chainweb.com?region=us-east-1
signing_private_key: ${{ secrets.NIX_CACHE_PRIVATE_KEY }}
Expand All @@ -31,5 +34,5 @@ jobs:
- name: Build and cache artifacts
timeout-minutes: 740
run: |
echo Building the default package and its devShell
nix build .#check
echo Building the project and its devShell
nix build .#check --log-lines 500 --show-trace

0 comments on commit d754d40

Please sign in to comment.