Build with Nix Workflow #92
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: Build with Nix Workflow | |
on: | |
schedule: | |
- cron: '0 0 * * 1' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 120 | |
steps: | |
- uses: styfle/cancel-workflow-action@0.12.1 | |
name: Cancel Outdated Builds | |
with: | |
all_but_latest: true | |
access_token: ${{ github.token }} | |
- name: Install Nix | |
uses: cachix/install-nix-action@V27 | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
# sanity check that repository builds with nix | |
- name: Build | |
run: | | |
nix develop -c cargo build --all-targets --release --workspace |