Skip to content

Commit d984ce4

Browse files
committed
Improve the CI script
Signed-off-by: Šimon Brandner <[email protected]>
1 parent 56a8d6f commit d984ce4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ jobs:
88
ci:
99
runs-on: ubuntu-latest
1010
steps:
11+
# Prepare
1112
- uses: actions/checkout@v4
12-
- name: Unzip models
13-
run: ./scripts/unzip_models.sh
1413
- uses: cachix/install-nix-action@v30
1514
with:
1615
github_access_token: ${{ secrets.GITHUB_TOKEN }}
16+
- run: rm -rf /home/runner/.cargo # This needs to be done to avoid clashes with Nix
17+
18+
# Check and build
19+
- run: ./scripts/unzip_models.sh
1720
- run: nix flake check
18-
- run: rm -rf /home/runner/.cargo
1921
- run: nix develop --command bash -c "export RUSTFLAGS='-D warnings' && cargo fmt -- --check"
2022
- run: nix develop --command bash -c "export RUSTFLAGS='-D warnings' && cargo clippy"
2123
- run: nix develop --command bash -c "export RUSTFLAGS='-D warnings' && cargo test"

0 commit comments

Comments
 (0)