aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/CI.yml
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej@certik.us>2020-01-14 09:03:33 -0700
committerOndřej Čertík <ondrej@certik.us>2020-01-14 09:03:33 -0700
commit8d948b6689a8b218ff3c791c558285edbd30c8a6 (patch)
tree15fb61ebb1709e55838201bd5e19306d81111248 /.github/workflows/CI.yml
parent30c7219ff8504b7597b65ef924e16c729e12e8fe (diff)
downloadfpm-8d948b6689a8b218ff3c791c558285edbd30c8a6.tar.gz
fpm-8d948b6689a8b218ff3c791c558285edbd30c8a6.zip
Install Rust using an action
Diffstat (limited to '.github/workflows/CI.yml')
-rw-r--r--.github/workflows/CI.yml14
1 files changed, 6 insertions, 8 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 5cb1c98..721dd78 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -21,6 +21,7 @@ jobs:
matrix:
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 }}
@@ -51,14 +52,10 @@ jobs:
if: contains( matrix.os, 'macos')
run: brew install gcc@${GCC_V} || brew upgrade gcc@${GCC_V} || true
- - name: Install Rust macOS
- if: contains(matrix.os, 'macos') || contains(matrix.os, 'windows')
- run: |
- curl https://sh.rustup.rs -sSf | sh -s -- -y
-
- - name: Setting Rust path
- if: contains(matrix.os, 'macos')
- run: echo "::add-path::${HOME}/.cargo/bin"
+ - name: Install Rust
+ uses: hecrj/setup-rust-action@v1
+ with:
+ rust-version: ${{ matrix.rust }}
- name: Build
run: |
@@ -70,6 +67,7 @@ jobs:
# TODO: integrate these with `cargo test` above
- name: Run manual tests
+ if: ! contains(matrix.os, 'windows')
run: |
cargo run -- --help
./run_tests.sh