aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej@certik.us>2020-01-17 16:56:48 -0700
committerGitHub <noreply@github.com>2020-01-17 16:56:48 -0700
commit98f526db9af0e75b16e694290c48c47ccd03b5aa (patch)
tree7bd2a403e6f6ad8fc7471333a465d9fd87c5e37c /.github
parent2d50ae9f8346d3d2f1516d8cbaf7c367aff1d2f8 (diff)
parent7b0097267a5c4c14be7e1b3893acda372413ef7a (diff)
downloadfpm-98f526db9af0e75b16e694290c48c47ccd03b5aa.tar.gz
fpm-98f526db9af0e75b16e694290c48c47ccd03b5aa.zip
Merge pull request #20 from certik/macos
macOS: repeat the test up to 2x if it fails
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/CI.yml15
1 files changed, 11 insertions, 4 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 0c8ad35..fce7da1 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -50,7 +50,7 @@ jobs:
--slave /usr/bingcov gcov /usr/bin/gcov-${GCC_V}
- name: Install GFortran macOS
- if: contains( matrix.os, 'macos')
+ if: contains(matrix.os, 'macos')
run: brew install gcc@${GCC_V} || brew upgrade gcc@${GCC_V} || true
- name: Install Rust
@@ -60,8 +60,15 @@ jobs:
- name: Build
run: |
- cargo build --verbose
+ cargo test --verbose --no-run
- - name: Run tests
+ - name: Run tests (Linux, Windows)
+ if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'windows')
run: |
- cargo test --verbose -j1
+ cargo test
+
+ # Workaround for https://github.com/fortran-lang/fpm/issues/16
+ - name: Run tests (macOS)
+ if: contains(matrix.os, 'macos')
+ run: |
+ cargo test || cargo test || cargo test