diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0bd3abbd..d4a7d3cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,21 +21,21 @@ jobs: uses: DeterminateSystems/flake-checker-action@main with: fail-mode: true - # - name: Set up Rust Cache - # uses: actions/cache@v3 - # with: - # path: | - # ~/.cargo/bin/ - # ~/.cargo/registry/index/ - # ~/.cargo/registry/cache/ - # ~/.cargo/git/db/ - # target/ - # key: maelstrom-${{ hashFiles('**/Cargo.lock') }} + - name: Set up Rust Cache + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: maelstrom-${{ hashFiles('**/Cargo.lock') }} - name: Check Rust Formatting - run: nix develop --command cargo fmt --check + run: nix develop --ignore-env --keep TERM --keep RUSTFLAGS --keep CARGO_TERM_COLOR --command cargo fmt --check - name: Lint Rust Code - run: nix develop --command cargo clippy --all-targets --all-features + run: nix develop --ignore-env --keep TERM --keep RUSTFLAGS --keep CARGO_TERM_COLOR --command cargo clippy --all-targets --all-features - name: Test Rust Code - run: nix develop --command cargo test + run: nix develop --ignore-env --keep TERM --keep RUSTFLAGS --keep CARGO_TERM_COLOR --command cargo test - name: Build Rust Code run: nix build