Skip to content

Commit f1c84a0

Browse files
committed
Put Cargo in PATH in all relevant sections
1 parent cb2df62 commit f1c84a0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,24 @@ jobs:
5151
if: contains( matrix.os, 'macos')
5252
run: |
5353
curl https://sh.rustup.rs -sSf | sh -s -- -y
54-
export PATH="$HOME/.cargo/bin:$PATH"
55-
which cargo
56-
cargo
5754
5855
- name: Install GFortran macOS
5956
if: contains( matrix.os, 'macos')
6057
run: brew install gcc@${GCC_V} || brew upgrade gcc@${GCC_V} || true
6158

6259
- name: Build
63-
run: cargo build --verbose
60+
run: |
61+
export PATH="$HOME/.cargo/bin:$PATH"
62+
cargo build --verbose
6463
6564
- name: Run tests
66-
run: cargo test --verbose
65+
run: |
66+
export PATH="$HOME/.cargo/bin:$PATH"
67+
cargo test --verbose
6768
6869
# TODO: integrate these with `cargo test` above
6970
- name: Run manual tests
7071
run: |
72+
export PATH="$HOME/.cargo/bin:$PATH"
7173
cargo run -- --help
7274
./run_tests.sh

0 commit comments

Comments
 (0)