-
-
Notifications
You must be signed in to change notification settings - Fork 74
46 lines (44 loc) · 1.57 KB
/
mac.yml
File metadata and controls
46 lines (44 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Mac
on: [push, pull_request]
jobs:
build:
strategy:
max-parallel: 10
fail-fast: false
matrix:
include:
- os: macos-latest
upload: 1
runs-on: ${{ matrix.os }}
env:
UPLOAD: ${{ matrix.upload }}
steps:
- uses: actions/checkout@v6
- name: Release Build
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
chmod +x ports/ci/mac/build.sh
./ports/ci/mac/build.sh
- name: Daily Build
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
env:
DAILY_BUILD: 1
run: |
chmod +x ports/ci/mac/build.sh
./ports/ci/mac/build.sh
- name: Release Upload
uses: softprops/action-gh-release@v3
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.upload }}
with:
files: packages/mac/*
token: ${{ secrets.GITHUB_TOKEN }}
- name: Daily Build Upload
uses: softprops/action-gh-release@v3
if: ${{ !startsWith(github.ref, 'refs/tags/') && matrix.upload }}
with:
body: "${{ github.event.head_commit.message }} (commit: [${{ github.sha }}](https://github.com/webcamoid/akvirtualcamera/commit/${{ github.sha }}))<hr>**Note**: Ignore the commit information of the tag, the files in the release keep updating with every new build, these packages were built from [${{ github.sha }}](https://github.com/webcamoid/akvirtualcamera/commit/${{ github.sha }}) commit."
prerelease: true
files: packages/mac/*
name: Daily Build
tag_name: daily-build
token: ${{ secrets.GITHUB_TOKEN }}