From 175042aca8c179f425cbb541c460f9fe9af57433 Mon Sep 17 00:00:00 2001 From: Rob Skillington Date: Sat, 14 Sep 2024 11:54:46 +1000 Subject: [PATCH 1/2] workflows: macos: Add workflow for MacOS builds on PRs Signed-off-by: Rob Skillington --- .github/workflows/pr-macos-build.yaml | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/pr-macos-build.yaml diff --git a/.github/workflows/pr-macos-build.yaml b/.github/workflows/pr-macos-build.yaml new file mode 100644 index 00000000000..51385832b09 --- /dev/null +++ b/.github/workflows/pr-macos-build.yaml @@ -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 }} From c32b5e2d2bab3b54ff7e58b8c2a04e5a33181444 Mon Sep 17 00:00:00 2001 From: Rob Skillington Date: Sat, 14 Sep 2024 12:22:20 +1000 Subject: [PATCH 2/2] Add MacOS build to .github/workflows/README.md Signed-off-by: Rob Skillington --- .github/workflows/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/README.md b/.github/workflows/README.md index e13624adf65..03fee5cf8af 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -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)