diff options
author | Ondřej Čertík <ondrej@certik.us> | 2020-01-14 09:10:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 09:10:16 -0700 |
commit | bf8ee015890da9528572b9dbc8eeaa4dd57e132c (patch) | |
tree | bddb2c30c98cee330f58b139ef32d183f79427a1 /.github | |
parent | 18ba49aabe705bea9a057d6ad8207473d0054e2c (diff) | |
parent | 570c47cca18fcf58acbcb4279824c133afa063e7 (diff) | |
download | fpm-bf8ee015890da9528572b9dbc8eeaa4dd57e132c.tar.gz fpm-bf8ee015890da9528572b9dbc8eeaa4dd57e132c.zip |
Merge pull request #7 from certik/win
CI: Test on Windows
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/CI.yml | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 775e4f5..a3678a1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -19,8 +19,9 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, macos-latest, windows-latest] gcc_v: [9] # Version of GFortran we want to use. + rust: [stable] env: FC: gfortran-${{ matrix.gcc_v }} GCC_V: ${{ matrix.gcc_v }} @@ -38,7 +39,7 @@ jobs: run: pip install --upgrade cmake - name: Install GFortran Linux - if: contains( matrix.os, 'ubuntu') + if: contains(matrix.os, 'ubuntu') run: | sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update @@ -47,28 +48,26 @@ 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: Install Rust + uses: hecrj/setup-rust-action@v1 + with: + rust-version: ${{ matrix.rust }} + - 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 + if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos') run: | - export PATH="$HOME/.cargo/bin:$PATH" cargo run -- --help ./run_tests.sh |