Debug #74
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: "CI" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- 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: nix flake check | |
- run: sudo apt-get remove rustup rustc | |
- run: rustup which rustc | |
- run: rustc --version | |
- run: rustup --version | |
- run: nix develop --command cargo fmt -- --check | |
- run: | | |
nix develop --command bash -c "export RUSTFLAGS='-D warnings' && cargo clean && cargo clippy" | |
- run: | | |
nix develop --command bash -c "export RUSTFLAGS='-D warnings' && cargo clean && cargo test" | |
- run: nix build |