From 8d948b6689a8b218ff3c791c558285edbd30c8a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Tue, 14 Jan 2020 09:03:33 -0700 Subject: Install Rust using an action --- .github/workflows/CI.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to '.github/workflows/CI.yml') 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 -- cgit v1.2.3