Skip to content

ci: 🎡 trigger builds based on commit message keywords #54

ci: 🎡 trigger builds based on commit message keywords

ci: 🎡 trigger builds based on commit message keywords #54

Workflow file for this run

name: Check PR
on:
pull_request:
branches: [main]
jobs:
check-pr:
if: github.head_ref != 'release'
runs-on: macos-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract Commit Message
id: commit-message
run: |
echo "message=$(git log --format=%B -n 1 ${{ github.event.pull_request.head.sha }})" >> $GITHUB_ENV
- uses: Homebrew/actions/setup-homebrew@master
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: ningenMe/[email protected]
- name: Install Make
run: brew install make
- name: Build Setup
run: make mac-setup
- name: Build Artifacts
env:
APPLE_MACOSX_SDK: MacOSX13
run: make demo-player
- name: Build(WASM)
if: contains(steps.commit-message.outputs.message, '[make wasm]') || contains(steps.commit-message.outputs.message, '[make all]')
env:
APPLE_MACOSX_SDK: MacOSX13
run: make wasm
- name: Build(Apple)
if: contains(steps.commit-message.outputs.message, '[make apple]') || contains(steps.commit-message.outputs.message, '[make all]')
env:
APPLE_MACOSX_SDK: MacOSX13
run: make apple
- name: Build(Android)
if: contains(steps.commit-message.outputs.message, '[make android]') || contains(steps.commit-message.outputs.message, '[make all]')
env:
APPLE_MACOSX_SDK: MacOSX13
run: make android