From ebcfd1ae515e04b7936f49b4cca89c5423762748 Mon Sep 17 00:00:00 2001 From: David Mohundro Date: Sun, 18 Aug 2024 18:47:38 -0500 Subject: [PATCH] fix: try different approach for builds --- .github/workflows/main.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a7df211..cf7755a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,22 +5,22 @@ on: [push, pull_request] jobs: mac-test: name: Mac Test - runs-on: macOS-latest - + runs-on: macos-latest + strategy: + matrix: + platform: + - macOS + - watchOS + - tvOS + - iOS + - mac-catalyst + swift: + - ~5.4 + - ^6 steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Build and test - env: - WORKSPACE: "-workspace SWXMLHash.xcworkspace" - ACTION: "build-for-testing test-without-building" - run: | - set -o pipefail - xcodebuild $ACTION $WORKSPACE -scheme "SWXMLHash OSX" | xcpretty - xcodebuild $ACTION $WORKSPACE -scheme "SWXMLHash iOS" -sdk iphonesimulator -destination "OS=17.2,name=iPhone 15" | xcpretty - xcodebuild $ACTION $WORKSPACE -scheme "SWXMLHash tvOS" -sdk appletvsimulator -destination "name=Apple TV" | xcpretty - xcodebuild build $WORKSPACE -scheme "SWXMLHash watchOS" -sdk watchsimulator | xcpretty - bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}} + - uses: bamx23/xcodebuild@v3 + with: + platform: ${{ matrix.platform }} linux-test: name: Linux Test