diff options
Diffstat (limited to '.github/workflows/CI.yml')
-rw-r--r-- | .github/workflows/CI.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 52caf55..775e4f5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -47,6 +47,28 @@ jobs: --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \ --slave /usr/bingcov gcov /usr/bin/gcov-${GCC_V} + - name: Install Rust macOS + if: contains( matrix.os, 'macos') + run: | + curl https://sh.rustup.rs -sSf | sh -s -- -y + - name: Install GFortran macOS if: contains( matrix.os, 'macos') run: brew install gcc@${GCC_V} || brew upgrade gcc@${GCC_V} || true + + - 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 |