aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej@certik.us>2020-01-13 23:00:43 -0700
committerGitHub <noreply@github.com>2020-01-13 23:00:43 -0700
commit085a843335db2990b1837354c09a86e1496b486d (patch)
tree3969816ce00e8b10ae4a9e92950d8ae7b67c8d06 /.github
parentd27e8b25be4c44a80cbac3e4888b18ed0d3fed5a (diff)
parentf1c84a0da7ee832b989736aaf1ff3f3fdff8a2e7 (diff)
downloadfpm-085a843335db2990b1837354c09a86e1496b486d.tar.gz
fpm-085a843335db2990b1837354c09a86e1496b486d.zip
Merge pull request #2 from certik/ci
Build and run Rust tests
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/CI.yml22
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