Skip to content

Commit

Permalink
Put Cargo in PATH in all relevant sections
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Jan 14, 2020
1 parent cb2df62 commit f1c84a0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,24 @@ jobs:
if: contains( matrix.os, 'macos')
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
export PATH="$HOME/.cargo/bin:$PATH"
which cargo
cargo
- name: Install GFortran macOS
if: contains( matrix.os, 'macos')
run: brew install gcc@${GCC_V} || brew upgrade gcc@${GCC_V} || true

- name: Build
run: cargo build --verbose
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo build --verbose
- name: Run tests
run: cargo test --verbose
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo test --verbose
# TODO: integrate these with `cargo test` above
- name: Run manual tests
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo run -- --help
./run_tests.sh

0 comments on commit f1c84a0

Please sign in to comment.