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]
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