From f1c84a0da7ee832b989736aaf1ff3f3fdff8a2e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Mon, 13 Jan 2020 22:56:09 -0700 Subject: Put Cargo in PATH in all relevant sections --- .github/workflows/CI.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to '.github/workflows') 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 -- cgit v1.2.3