Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflows: macos: Add workflow for MacOS builds on PRs #9386

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ Various workflows are run for PRs automatically:
* [Compile checks on CentOS 7 compilers](./pr-compile-check.yaml)
* [Linting](./pr-lint.yaml)
* [Windows builds](./pr-windows-build.yaml)
* [MacOS builds](./pr-macos-build.yaml)
* [Fuzzing](./pr-fuzz.yaml)
* [Container image builds](./pr-image-tests.yaml)
* [Install script checks](./pr-install-script.yaml)
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/pr-macos-build.yaml
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 }}
Loading