akvirtualcamera/.github/workflows/mac.yml

64 lines
1.8 KiB
YAML
Raw Normal View History

name: Mac
on: [push, pull_request]
env:
2021-06-26 22:34:22 +00:00
QTIFWVER: 4.1.1
jobs:
build:
runs-on: macos-latest
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/') }}
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/') }}
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
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
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: webcamoid-packages/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Daily Build Upload
uses: softprops/action-gh-release@v1
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
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
files: webcamoid-packages/*
name: Daily Build
tag_name: daily-build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2021-06-28 19:43:36 +00:00
- name: MacOS daily build packages
uses: actions/upload-artifact@v2
with:
name: mac-daily-build
path: webcamoid-packages/*