From ac9ba2b7fb4789922e5dbe110073e8639b9e1d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lafage?= Date: Mon, 6 Jun 2022 18:56:26 +0200 Subject: [PATCH] Add CI for Windows (#13) --- .github/workflows/checking.yml | 16 ++++++++-------- .github/workflows/testing.yml | 10 ++++++++-- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/checking.yml b/.github/workflows/checking.yml index 9548dda..c19a273 100644 --- a/.github/workflows/checking.yml +++ b/.github/workflows/checking.yml @@ -4,19 +4,19 @@ name: Check For Build Errors jobs: check: - name: check - runs-on: ubuntu-latest + name: check-${{ matrix.toolchain }}-${{ matrix.os }} + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - toolchain: + toolchain: - 1.54.0 - stable - experimental: [false] - include: - - toolchain: nightly - experimental: true - continue-on-error: ${{ matrix.experimental }} + - nightly + os: + - ubuntu-latest + - windows-latest + continue-on-error: ${{ matrix.toolchain == 'nightly' }} steps: - name: Checkout sources diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 435552e..a1ccefa 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -4,8 +4,8 @@ name: Run Tests jobs: testing: - name: testing - runs-on: ubuntu-18.04 + name: testing-${{ matrix.toolchain }}-${{ matrix.os }} + runs-on: ${{ matrix.os }} if: github.event.pull_request.draft == false strategy: fail-fast: false @@ -13,6 +13,9 @@ jobs: toolchain: - 1.54.0 - stable + os: + - ubuntu-18.04 + - windows-2019 steps: - name: Checkout sources @@ -25,6 +28,9 @@ jobs: toolchain: ${{ matrix.toolchain }} override: true + - name: Log active toolchain + run: rustup show + - name: Run cargo test uses: actions-rs/cargo@v1 with: