Skip to content

Commit

Permalink
Make clippy CI happy
Browse files Browse the repository at this point in the history
Signed-off-by: Šimon Brandner <[email protected]>
  • Loading branch information
SimonBrandner committed Jan 24, 2025
1 parent ec31d38 commit 00931da
Show file tree
Hide file tree
Showing 7 changed files with 557 additions and 410 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ jobs:
ci:
runs-on: ubuntu-latest
steps:
# Prepare
- uses: actions/checkout@v4
- name: Unzip models
run: ./scripts/unzip_models.sh
- uses: cachix/install-nix-action@v27
- uses: cachix/install-nix-action@v30
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: rm -rf /home/runner/.cargo # This needs to be done to avoid clashes with Nix

# Check and build
- run: ./scripts/unzip_models.sh
- run: nix flake check
- run: nix develop --command cargo fmt -- --check
- run: |
nix develop --command bash -c "export RUSTFLAGS='-D warnings' && cargo clippy"
- run: |
nix develop --command bash -c "export RUSTFLAGS='-D warnings' && cargo test"
- run: nix develop --command bash -c "export RUSTFLAGS='-D warnings' && cargo fmt -- --check"
- run: nix develop --command bash -c "export RUSTFLAGS='-D warnings' && cargo clippy"
- run: nix develop --command bash -c "export RUSTFLAGS='-D warnings' && cargo test"
- run: nix build
Loading

0 comments on commit 00931da

Please sign in to comment.