Build with Nix Workflow #90
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: | |
concurrency: | |
group: ${{ github.workflow }}-${{ (github.ref == 'refs/heads/main' && github.run_number) || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
steps: | |
- name: Install Nix | |
uses: cachix/install-nix-action@v25 | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Format | |
run: | | |
nix develop -c cargo fmt -- --check | |
- name: Build | |
run: | | |
nix develop -c cargo build --all-targets --workspace --all-features --release | |
- name: Test | |
run: | | |
nix develop -c cargo test --release --all-targets --workspace --all-features | |
- name: Lint | |
run: | | |
nix develop -c cargo clippy --workspace --all-targets --all-features --bins --tests --examples -- -D warnings |