Skip to content

Commit

Permalink
Merge pull request #2 from certik/ci
Browse files Browse the repository at this point in the history
Build and run Rust tests
  • Loading branch information
certik authored Jan 14, 2020
2 parents d27e8b2 + f1c84a0 commit 085a843
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 085a843

Please sign in to comment.