From 96ae2ee7ac123c60e355e470d78dd6c33294469f Mon Sep 17 00:00:00 2001 From: JJTech Date: Tue, 23 Aug 2022 18:13:20 -0400 Subject: [PATCH] Convert to build matrix (#56) * Convert to build matrix * turn off fail-fast strategy we don't want all the jobs cancelled just because it didn't build in an old version of Xcode * only trigger push build when pushing to master or develop Signed-off-by: JJTech --- .github/workflows/build.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27996217..138f04ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,18 +1,35 @@ name: Build and Upload SideStore -on: [push, pull_request] +on: + push: + branches: + - master + - develop + pull_request: + jobs: build: name: Build and upload SideStore - runs-on: macos-12 + strategy: + fail-fast: false + matrix: + include: + - os: 'macos-12' + version: '14.0-beta' + - os: 'macos-12' + version: '13.4.1' + - os: 'macos-11' + version: '13.2.1' + + runs-on: ${{ matrix.os }} steps: - name: Checkout code uses: actions/checkout@v2 with: submodules: recursive - - name: Setup Xcode 14 + - name: Setup Xcode uses: maxim-lobanov/setup-xcode@v1.4.1 with: - xcode-version: '14.0-beta' + xcode-version: ${{ matrix.version }} - name: Build SideStore run: | rm -rf ~/Library/Developer/Xcode/DerivedData/