aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/CI.yml
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej@certik.us>2020-01-14 08:58:35 -0700
committerOndřej Čertík <ondrej@certik.us>2020-01-14 08:58:35 -0700
commitff51bcf0daf4effcf1f89ac95b549c065a093c8a (patch)
treedd8d15201e89b61fb9a5f76c9f973c053d943f7d /.github/workflows/CI.yml
parent6902f83809cdd2ed39881b3d2ea7a70c6a048ea1 (diff)
downloadfpm-ff51bcf0daf4effcf1f89ac95b549c065a093c8a.tar.gz
fpm-ff51bcf0daf4effcf1f89ac95b549c065a093c8a.zip
Set PATH only once
Diffstat (limited to '.github/workflows/CI.yml')
-rw-r--r--.github/workflows/CI.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index d870b4e..fa42b2f 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -56,19 +56,20 @@ jobs:
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
+ - name: Setting Rust path
+ if: contains(matrix.os, 'macos')
+ run: echo "::add-path::${HOME}/.cargo/bin"
+
- name: Build
run: |
- export PATH="$HOME/.cargo/bin:$PATH"
cargo build --verbose
- name: Run tests
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