From 3efbfba0e4e56c7187cc19137ee16b7c95346b79 Mon Sep 17 00:00:00 2001 From: Brian Michel Date: Mon, 11 Sep 2023 12:13:25 -0400 Subject: [PATCH] Turn Windows CI back on (#99) * Turn Windows CI back on * Only test debug --- .github/workflows/ci.yml | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4c26f1..b478b57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,14 +77,25 @@ jobs: with: shell-action: carton test --environment node - #windows: - # name: Windows - # runs-on: windows-latest - # steps: - # - uses: compnerd/gha-setup-swift@main - # with: - # branch: swift-5.7-release - # tag: 5.7.1-RELEASE - # - # - uses: actions/checkout@v3 - # - run: swift test && swift build --configuration release + windows: + name: Windows + strategy: + matrix: + os: [windows-latest] + config: ['debug', 'release'] + runs-on: ${{ matrix.os }} + steps: + - uses: compnerd/gha-setup-swift@main + with: + branch: swift-5.8.1-release + tag: 5.8.1-RELEASE + - uses: actions/checkout@v3 + - name: Build All Configurations + run: swift build -c ${{ matrix.config }} + - name: Run tests (debug only) + # There is an issue that exists in the 5.8.1 toolchain + # which fails on release configuration testing, but + # this issue is fixed 5.9 so we can remove the if once + # that is generally available. + if: ${{ matrix.config == 'debug' }} + run: swift test