From 0c9584aafb130dfb24481dc5e450b34dc9cfb672 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Tue, 5 Mar 2024 19:27:36 -0800 Subject: [PATCH] Modernize GitHub CI action. --- .github/workflows/ci.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f789fd2..3c3ac56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,12 +5,15 @@ on: [push, pull_request] env: CARGO_TERM_COLOR: always +defaults: + run: + shell: bash + jobs: test: name: "${{ matrix.os.name }} ${{ matrix.test.name }} (${{ matrix.toolchain }})" continue-on-error: false runs-on: ${{ matrix.os.distro }} - strategy: fail-fast: false matrix: @@ -19,28 +22,20 @@ jobs: - { name: Windows, distro: windows-latest } - { name: macOS, distro: macOS-latest } toolchain: [nightly, stable, "1.63"] - steps: - name: Checkout Sources - uses: actions/checkout@v3 - - - name: Install Rust (stable) - uses: dtolnay/rust-toolchain@stable + uses: actions/checkout@v4 - name: Install Rust (${{ matrix.toolchain }}) - if: matrix.toolchain != 'stable' uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.toolchain }} - name: Install Cargo Hack - run: cargo +stable install cargo-hack - shell: bash + uses: taiki-e/install-action@cargo-hack - name: Check Feature Combinations run: cargo hack check --feature-powerset --no-dev-deps --skip _nightly - shell: bash - name: Run Tests - run: cargo +stable hack test --feature-powerset --skip _nightly - shell: bash + run: cargo hack test --feature-powerset --skip _nightly