hyperplonk/.github/workflows/build_nix.yml
.github/workflows/build_nix.ymlRaw
1name: Build with Nix Workflow
2
3on:
4 schedule:
5 - cron: '0 0 * * 1'
6 workflow_dispatch:
7
8jobs:
9 build:
10 runs-on: ubuntu-latest
11 timeout-minutes: 120
12 steps:
13 - uses: styfle/cancel-workflow-action@0.11.0
14 name: Cancel Outdated Builds
15 with:
16 all_but_latest: true
17 access_token: ${{ github.token }}
18
19 - name: Install Nix
20 uses: cachix/install-nix-action@v21
21
22 - name: Checkout Repository
23 uses: actions/checkout@v3
24
25 # sanity check that repository builds with nix
26 - name: Build
27 run: |
28 nix develop -c cargo build --all-targets --release --workspace