Hahaha #81
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: "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 snap remove rustc | |
- run: sudo snap remove rustup | |
- run: sudo apt-get remove rustup rustc | |
- run: rustup which rustc | |
- run: rustc --version | |
- run: rustup --version | |
- run: rm -rf /home/runner/.cargo/bin/cargo | |
- run: which cargo | |
- run: which rustc | |
- run: which rustup | |
- run: rm -rf target | |
- run: nix develop --command bash -c "export RUSTFLAGS='-D warnings' && rm -rf target && cargo clean && cargo fmt -- --check" | |
- run: nix develop --command bash -c "export RUSTFLAGS='-D warnings' && rm -rf target && cargo clean && cargo clippy" | |
- run: nix develop --command bash -c "export RUSTFLAGS='-D warnings' && rm -rf target && cargo clean && cargo test" | |
- run: nix build |