2021-06-25 15:26:42 +00:00
|
|
|
name: Mac
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
env:
|
2021-08-03 15:32:54 +00:00
|
|
|
NJOBS: 4
|
2021-06-25 15:26:42 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-04-30 17:37:54 +00:00
|
|
|
strategy:
|
|
|
|
max-parallel: 10
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: macos-13
|
2023-04-30 21:26:20 +00:00
|
|
|
architecture: x64
|
2023-04-30 17:37:54 +00:00
|
|
|
upload: 0
|
|
|
|
- os: macos-12
|
2023-04-30 21:26:20 +00:00
|
|
|
architecture: x64
|
2023-04-30 17:37:54 +00:00
|
|
|
upload: 0
|
|
|
|
- os: macos-11
|
2023-04-30 21:26:20 +00:00
|
|
|
architecture: x64
|
|
|
|
upload: 1
|
2023-04-30 21:41:45 +00:00
|
|
|
# - os: macos-13
|
|
|
|
# architecture: arm64
|
|
|
|
# upload: 0
|
|
|
|
# - os: macos-12
|
|
|
|
# architecture: arm64
|
|
|
|
# upload: 0
|
|
|
|
# - os: macos-11
|
|
|
|
# architecture: arm64
|
|
|
|
# upload: 1
|
2023-04-30 17:37:54 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
env:
|
|
|
|
UPLOAD: ${{ matrix.upload }}
|
2023-04-30 21:26:20 +00:00
|
|
|
ARCHITECTURE: ${{ matrix.architecture }}
|
2021-06-25 15:26:42 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2021-06-25 15:48:53 +00:00
|
|
|
chmod +x ports/ci/mac/install_deps.sh
|
|
|
|
./ports/ci/mac/install_deps.sh
|
2021-06-29 21:22:19 +00:00
|
|
|
- name: Release Build
|
|
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
2021-06-25 15:26:42 +00:00
|
|
|
run: |
|
2021-06-25 15:48:53 +00:00
|
|
|
chmod +x ports/ci/mac/build.sh
|
|
|
|
./ports/ci/mac/build.sh
|
2021-06-29 21:22:19 +00:00
|
|
|
- name: Release Deploy
|
|
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
2021-06-25 15:26:42 +00:00
|
|
|
run: |
|
2021-06-25 15:48:53 +00:00
|
|
|
chmod +x ports/ci/mac/deploy.sh
|
|
|
|
./ports/ci/mac/deploy.sh
|
2021-06-29 21:22:19 +00:00
|
|
|
- name: Daily Build
|
|
|
|
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
|
|
env:
|
|
|
|
DAILY_BUILD: 1
|
2021-06-25 15:26:42 +00:00
|
|
|
run: |
|
2021-06-29 21:22:19 +00:00
|
|
|
chmod +x ports/ci/mac/build.sh
|
|
|
|
./ports/ci/mac/build.sh
|
|
|
|
- name: Daily Deploy
|
|
|
|
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
|
|
env:
|
|
|
|
DAILY_BUILD: 1
|
|
|
|
run: |
|
|
|
|
chmod +x ports/ci/mac/deploy.sh
|
|
|
|
./ports/ci/mac/deploy.sh
|
|
|
|
- name: Release Upload
|
2021-11-02 19:03:51 +00:00
|
|
|
uses: softprops/action-gh-release@v1
|
2023-04-30 17:37:54 +00:00
|
|
|
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.upload }}
|
2021-06-29 21:22:19 +00:00
|
|
|
with:
|
2021-08-03 15:32:54 +00:00
|
|
|
files: packages/mac/*
|
2021-06-29 21:22:19 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Daily Build Upload
|
2021-11-02 19:03:51 +00:00
|
|
|
uses: softprops/action-gh-release@v1
|
2023-04-30 17:37:54 +00:00
|
|
|
if: ${{ !startsWith(github.ref, 'refs/tags/') && matrix.upload }}
|
2021-06-29 21:22:19 +00:00
|
|
|
with:
|
2021-06-29 21:47:20 +00:00
|
|
|
body: "${{ github.event.head_commit.message }} (commit: ${{ github.sha }})"
|
2021-06-29 21:22:19 +00:00
|
|
|
prerelease: true
|
2021-08-03 15:32:54 +00:00
|
|
|
files: packages/mac/*
|
2021-06-29 21:22:19 +00:00
|
|
|
name: Daily Build
|
|
|
|
tag_name: daily-build
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|