From ff51bcf0daf4effcf1f89ac95b549c065a093c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Tue, 14 Jan 2020 08:58:35 -0700 Subject: Set PATH only once --- .github/workflows/CI.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.github') 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 -- cgit v1.2.3