Skip to content

Commit

Permalink
Try to fix CI with nix develop --ignore-environment
Browse files Browse the repository at this point in the history
  • Loading branch information
nfachan committed Jan 17, 2024
1 parent b4a73d8 commit 5529118
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5529118

Please sign in to comment.