Merge branch 'lagrange' into dependabot/cargo/prost-0.13.5 #136
Workflow file for this run
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: Run Checks | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
actions: write | |
env: | |
RUSTFLAGS: "-Dwarnings" | |
jobs: | |
build-nixpkg: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: nixbuild/nix-quick-install-action@v27 | |
- name: Restore and cache Nix store | |
uses: nix-community/cache-nix-action@v5 | |
with: | |
primary-key: nix-${{ runner.os }}-${{ hashFiles('flake.nix') }} | |
restore-prefixes-first-match: nix-${{ runner.os }}- | |
gc-max-store-size-linux: 107374182 | |
purge: true | |
purge-prefixes: cache-${{ runner.os }}- | |
purge-created: 0 | |
purge-primary-key: never | |
- name: Build package | |
run: |- | |
nix build .# | |
- name: Save Nix Cache | |
if: always() | |
uses: nix-community/cache-nix-action/save@v5 | |
with: | |
primary-key: nix-${{ runner.os }}-${{ hashFiles('flake.nix') }} | |
check-clippy: | |
runs-on: ubuntu-latest | |
needs: build-nixpkg | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: nixbuild/nix-quick-install-action@v27 | |
- name: Restore Nix Cache | |
uses: nix-community/cache-nix-action@v5 | |
with: | |
primary-key: nix-${{ runner.os }}-${{ hashFiles('flake.nix') }} | |
- name: Check clippy | |
run: | | |
nix build .#checks.x86_64-linux.clippy 2>&1 | |
check-fmt: | |
runs-on: ubuntu-latest | |
needs: build-nixpkg | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: nixbuild/nix-quick-install-action@v27 | |
- name: Restore Nix Cache | |
uses: nix-community/cache-nix-action@v5 | |
with: | |
primary-key: nix-${{ runner.os }}-${{ hashFiles('flake.nix') }} | |
- name: Check fmt | |
run: | | |
nix build .#checks.x86_64-linux.fmt 2>&1 | |
check-doc: | |
runs-on: ubuntu-latest | |
needs: build-nixpkg | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: nixbuild/nix-quick-install-action@v27 | |
- name: Restore Nix Cache | |
uses: nix-community/cache-nix-action@v5 | |
with: | |
primary-key: nix-${{ runner.os }}-${{ hashFiles('flake.nix') }} | |
- name: Check doc | |
run: | | |
nix build .#checks.x86_64-linux.doc 2>&1 | |
check-test: | |
runs-on: ubuntu-latest | |
needs: build-nixpkg | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: nixbuild/nix-quick-install-action@v27 | |
- name: Restore Nix Cache | |
uses: nix-community/cache-nix-action@v5 | |
with: | |
primary-key: nix-${{ runner.os }}-${{ hashFiles('flake.nix') }} | |
- name: Check test | |
run: | | |
nix build .#checks.x86_64-linux.test 2>&1 | |
check-audit: | |
runs-on: ubuntu-latest | |
needs: build-nixpkg | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: nixbuild/nix-quick-install-action@v27 | |
- name: Restore Nix Cache | |
uses: nix-community/cache-nix-action@v5 | |
with: | |
primary-key: nix-${{ runner.os }}-${{ hashFiles('flake.nix') }} | |
- name: Check test | |
run: | | |
nix build .#checks.x86_64-linux.audit 2>&1 | |
check-typo: | |
runs-on: ubuntu-latest | |
needs: build-nixpkg | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: nixbuild/nix-quick-install-action@v27 | |
- name: Restore Nix Cache | |
uses: nix-community/cache-nix-action@v5 | |
with: | |
primary-key: nix-${{ runner.os }}-${{ hashFiles('flake.nix') }} | |
- name: Check typo | |
run: | | |
nix build .#checks.x86_64-linux.typo 2>&1 | |
check-devshell: | |
runs-on: ubuntu-latest | |
needs: build-nixpkg | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Check Flake Inputs Update | |
uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
lockfile: | |
- 'flake.lock' | |
- '**/*.nix' | |
- name: Install Nix | |
if: steps.filter.outputs.lockfile == 'true' | |
uses: nixbuild/nix-quick-install-action@v27 | |
- name: Restore Nix Cache | |
if: steps.filter.outputs.lockfile == 'true' | |
uses: nix-community/cache-nix-action@v5 | |
with: | |
primary-key: nix-${{ runner.os }}-${{ hashFiles('flake.nix') }} | |
- name: Check devShell | |
if: steps.filter.outputs.lockfile == 'true' | |
run: | | |
nix build .#devShells.x86_64-linux.default 2>&1 |