From 2f7e36468d68ac250cb5d22e4b4abf3fb12dab79 Mon Sep 17 00:00:00 2001 From: Joe Eli McIlvain Date: Fri, 13 May 2022 15:35:07 -0700 Subject: [PATCH] Add `windows-latest` to CI `library-check` / `spec` job. This enables testing of libraries on Windows. --- .github/workflows/library-check.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/library-check.yaml b/.github/workflows/library-check.yaml index 3276fd2..f03ce6f 100644 --- a/.github/workflows/library-check.yaml +++ b/.github/workflows/library-check.yaml @@ -24,13 +24,19 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest] - runs-on: ${{matrix.os}} + include: + - { os: ubuntu-latest, shell: bash } + - { os: macos-latest, shell: bash } + - { os: windows-latest, shell: 'wsl-bash {0}' } + runs-on: ${{ matrix.os }} + defaults: + run: + shell: ${{ matrix.shell }} steps: - uses: actions/checkout@v2 - - uses: savi-lang/action-install@v1.0.0 + - uses: savi-lang/action-install@v1.1.0 - run: savi deps update --for spec - - run: savi run spec + - run: savi run spec ${{ runner.os == 'Windows' && '--cross-compile=x86_64-unknown-windows-msvc' || '' }} # Check formatting of all files in the repository. format: