build: changes required for spdk 25.05 #94
This file contains hidden or 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: Code Linter | |
| on: | |
| merge_group: | |
| pull_request: | |
| types: ['opened', 'edited', 'reopened', 'synchronize'] | |
| jobs: | |
| rust-lint: | |
| strategy: | |
| matrix: | |
| os: [github-arm64-2c-8gb, ubuntu-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - uses: cachix/install-nix-action@v26 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-22.11 | |
| - name: nix-shell | |
| run: nix-shell --pure --run exit | |
| - name: cargo-clippy | |
| run: nix-shell --pure --run ./scripts/rust-linter.sh | |
| - name: cargo-fmt | |
| run: nix-shell --pure --run "FMT_OPTS=--check ./scripts/rust-style.sh" | |
| nix-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - uses: cachix/install-nix-action@v26 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-22.11 | |
| - name: nix-shell | |
| run: nix-shell --pure -p nixpkgs-fmt --run "nixpkgs-fmt --check ." |