Run Mac builds in a matrix.

This commit is contained in:
Gonzalo Exequiel Pedone 2023-04-30 14:37:54 -03:00
parent f741b1766b
commit d051bf6ea7
No known key found for this signature in database
GPG key ID: B8B09E63E9B85BAF

View file

@ -3,12 +3,24 @@ name: Mac
on: [push, pull_request] on: [push, pull_request]
env: env:
QTIFWVER: 4.1.0
NJOBS: 4 NJOBS: 4
jobs: jobs:
build: 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: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install dependencies - name: Install dependencies
@ -41,14 +53,14 @@ jobs:
./ports/ci/mac/deploy.sh ./ports/ci/mac/deploy.sh
- name: Release Upload - name: Release Upload
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }} if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.upload }}
with: with:
files: packages/mac/* files: packages/mac/*
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Daily Build Upload - name: Daily Build Upload
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: ${{ !startsWith(github.ref, 'refs/tags/') }} if: ${{ !startsWith(github.ref, 'refs/tags/') && matrix.upload }}
with: with:
body: "${{ github.event.head_commit.message }} (commit: ${{ github.sha }})" body: "${{ github.event.head_commit.message }} (commit: ${{ github.sha }})"
prerelease: true prerelease: true