-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows: macos: Add workflow for MacOS builds on PRs
- Loading branch information
1 parent
b59e1e9
commit 7bd6f2e
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: PR - MacOS checks | ||
|
||
# | ||
# Test PRs on MacOS | ||
# | ||
# This won't run automatically on PRs from untrusted repos, it must be approved | ||
# manually. If PR authors want to run it themselves, they should enable running | ||
# actions on their fork, then invoke it on their branch via their forked repo's | ||
# Actions tab. | ||
# | ||
|
||
on: | ||
# Enable invocation via Github repo Actions tab. Having this in the repo | ||
# allows people with github forks to run this job on their own branches to | ||
# build MacOS branches conveniently. See DEVELOPER_GUIDE.md. | ||
workflow_dispatch: | ||
|
||
pull_request: | ||
# Limit to just those changes that 'might' affect MacOS for automated builds | ||
# We can always do a manual build for a branch | ||
paths: | ||
- '**.h' | ||
- '**.c' | ||
- './conf/**' | ||
- './cmake/**' | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
jobs: | ||
pr-macos-build: | ||
uses: ./.github/workflows/call-build-macos.yaml | ||
with: | ||
version: ${{ github.sha }} | ||
ref: ${{ github.sha }} | ||
environment: pr | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} |