From d051bf6ea7721bfc3169d20525d3e76364498c01 Mon Sep 17 00:00:00 2001 From: Gonzalo Exequiel Pedone Date: Sun, 30 Apr 2023 14:37:54 -0300 Subject: [PATCH] Run Mac builds in a matrix. --- .github/workflows/mac.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 345759e..bf96aa8 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -3,12 +3,24 @@ name: Mac on: [push, pull_request] env: - QTIFWVER: 4.1.0 NJOBS: 4 jobs: build: - runs-on: macos-latest + strategy: + max-parallel: 10 + fail-fast: false + matrix: + include: + - os: macos-13 + upload: 0 + - os: macos-12 + upload: 0 + - os: macos-11 + upload: 1 + runs-on: ${{ matrix.os }} + env: + UPLOAD: ${{ matrix.upload }} steps: - uses: actions/checkout@v2 - name: Install dependencies @@ -41,14 +53,14 @@ jobs: ./ports/ci/mac/deploy.sh - name: Release Upload uses: softprops/action-gh-release@v1 - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.upload }} with: files: packages/mac/* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Daily Build Upload uses: softprops/action-gh-release@v1 - if: ${{ !startsWith(github.ref, 'refs/tags/') }} + if: ${{ !startsWith(github.ref, 'refs/tags/') && matrix.upload }} with: body: "${{ github.event.head_commit.message }} (commit: ${{ github.sha }})" prerelease: true