Run Mac builds in a matrix.
This commit is contained in:
parent
f741b1766b
commit
d051bf6ea7
1 changed files with 16 additions and 4 deletions
20
.github/workflows/mac.yml
vendored
20
.github/workflows/mac.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue