Skip to content

Commit 085a843

Browse files
authored
Merge pull request #2 from certik/ci
Build and run Rust tests
2 parents d27e8b2 + f1c84a0 commit 085a843

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/CI.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,28 @@ jobs:
4747
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
4848
--slave /usr/bingcov gcov /usr/bin/gcov-${GCC_V}
4949
50+
- name: Install Rust macOS
51+
if: contains( matrix.os, 'macos')
52+
run: |
53+
curl https://sh.rustup.rs -sSf | sh -s -- -y
54+
5055
- name: Install GFortran macOS
5156
if: contains( matrix.os, 'macos')
5257
run: brew install gcc@${GCC_V} || brew upgrade gcc@${GCC_V} || true
58+
59+
- name: Build
60+
run: |
61+
export PATH="$HOME/.cargo/bin:$PATH"
62+
cargo build --verbose
63+
64+
- name: Run tests
65+
run: |
66+
export PATH="$HOME/.cargo/bin:$PATH"
67+
cargo test --verbose
68+
69+
# TODO: integrate these with `cargo test` above
70+
- name: Run manual tests
71+
run: |
72+
export PATH="$HOME/.cargo/bin:$PATH"
73+
cargo run -- --help
74+
./run_tests.sh

0 commit comments

Comments
 (0)