Merge pull request #632 from EspressoSystems/jb/archival #345
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
name: Nix | |
on: | |
push: | |
branches: | |
- main | |
- release-* | |
schedule: | |
- cron: '0 0 * * 1' | |
workflow_dispatch: | |
jobs: | |
nix: | |
runs-on: ubuntu-latest | |
timeout-minutes: 90 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@V27 | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: espresso-systems-private | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Cache cargo | |
uses: actions/cache@v4.0.2 | |
with: | |
path: | | |
~/.cargo-nix/registry/index | |
~/.cargo-nix/registry/cache | |
~/.cargo-nix/git | |
target | |
key: espresso-nix-v2-${{ hashFiles('Cargo.lock') }} | |
- name: "Sanity Check: nix environment loads" | |
run: nix-shell --run "echo Success" | |
- name: "Sanity Check: nix environment builds all targets" | |
run: nix-shell --run "cargo build --all-targets --all-features --release --workspace" |