diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 8f0be9ae..20d04d85 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -12,12 +12,20 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true -env: - DEVELOPER_DIR: /Applications/Xcode_15.0.1.app/Contents/Developer jobs: build: name: Build and test runs-on: macos-13 + continue-on-error: true + strategy: + matrix: + include: + - destination: iPhone 15 Pro + xcode: 15.0.1 + - destination: iPhone 14 Pro + xcode: 14.3.1 + env: + DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer steps: - name: Checkout uses: actions/checkout@v3 @@ -28,10 +36,10 @@ jobs: xcodebuild build-for-testing\ -scheme Runestone\ -sdk iphonesimulator\ - -destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=latest" + -destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=latest" - name: Test run: | xcodebuild test-without-building\ -scheme Runestone\ -sdk iphonesimulator\ - -destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=latest" + -destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=latest" diff --git a/.github/workflows/build_example_project.yml b/.github/workflows/build_example_project.yml index f4f792f1..dcdd5ee5 100644 --- a/.github/workflows/build_example_project.yml +++ b/.github/workflows/build_example_project.yml @@ -10,12 +10,20 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true -env: - DEVELOPER_DIR: /Applications/Xcode_15.0.1.app/Contents/Developer jobs: build: name: Build example project runs-on: macos-13 + continue-on-error: true + strategy: + matrix: + include: + - destination: iPhone 15 Pro + xcode: 15.0.1 + - destination: iPhone 14 Pro + xcode: 14.3.1 + env: + DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer steps: - name: Checkout uses: actions/checkout@v3 @@ -27,4 +35,4 @@ jobs: -project Example/Example.xcodeproj\ -scheme Example\ -sdk iphonesimulator\ - -destination "platform=iOS Simulator,name=iPhone 15 Pro,OS=latest" + -destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=latest"