diff options
author | Ondřej Čertík <ondrej@certik.us> | 2020-01-13 22:56:09 -0700 |
---|---|---|
committer | Ondřej Čertík <ondrej@certik.us> | 2020-01-13 22:56:09 -0700 |
commit | f1c84a0da7ee832b989736aaf1ff3f3fdff8a2e7 (patch) | |
tree | 3969816ce00e8b10ae4a9e92950d8ae7b67c8d06 | |
parent | cb2df62f163e8d497f65ff1b340786090c5dcacd (diff) | |
download | fpm-f1c84a0da7ee832b989736aaf1ff3f3fdff8a2e7.tar.gz fpm-f1c84a0da7ee832b989736aaf1ff3f3fdff8a2e7.zip |
Put Cargo in PATH in all relevant sections
-rw-r--r-- | .github/workflows/CI.yml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 350e1b1..775e4f5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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 |