Skip to content

Commit

Permalink
Improve the CI script
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 56a8d6f commit d984ce4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ 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@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: rm -rf /home/runner/.cargo
- 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"
Expand Down

0 comments on commit d984ce4

Please sign in to comment.