akvirtualcamera/.github/workflows/mac.yml
2021-08-03 13:38:16 -03:00

59 lines
1.6 KiB
YAML

name: Mac
on: [push, pull_request]
env:
QTIFWVER: 4.1.1
NJOBS: 4
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
chmod +x ports/ci/mac/install_deps.sh
./ports/ci/mac/install_deps.sh
- name: Release Build
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
chmod +x ports/ci/mac/build.sh
./ports/ci/mac/build.sh
- name: Release Deploy
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
chmod +x ports/ci/mac/deploy.sh
./ports/ci/mac/deploy.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: 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
uses: softprops/action-gh-release@v0.1.6
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: packages/mac/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Daily Build Upload
uses: softprops/action-gh-release@v0.1.6
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
with:
body: "${{ github.event.head_commit.message }} (commit: ${{ github.sha }})"
prerelease: true
files: packages/mac/*
name: Daily Build
tag_name: daily-build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}