* .github/workflows/cmake.yml: Add Mac OS workflow.
(matrix): Add simple configuration.
(Prepare Environment): Add path to where serf would be installed to
CMAKE_PREFIX_PATH.
(Install dependencies): Get Subversion from homebrew for Serf library.
- Pre-tested in my GitHub fork.
- Most of the libraries should be pre-installed in the system due to
the dev-kit.
git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1926389 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 555995a..dfa160a 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -83,6 +83,11 @@
libdbus-1-dev
qtbase5-dev
libsecret-1-dev
+ - name: Mac OS
+ os: macos-latest
+ build_shared: ON
+ cmake_generator: Ninja
+ run_tests: true
runs-on: ${{ matrix.os }}
name: ${{ matrix.name }}
@@ -106,6 +111,11 @@
run: |
# nothing yet
+ - name: Prepare Environment (Mac OS)
+ if: runner.os == 'macOS'
+ run: |
+ "CMAKE_PREFIX_PATH=/opt/homebrew/opt/subversion/libexec/serf" >> $env:GITHUB_ENV
+
- name: Export GitHub Actions cache environment variables
if: runner.os == 'Windows'
uses: actions/github-script@v7
@@ -138,6 +148,13 @@
ninja-build
${{ matrix.extra_packages }}
+ - name: Install dependencies (Mac OS, homebrew)
+ if: runner.os == 'macOS'
+ # hack to get serf installed, since there is no separate package.
+ run: >
+ brew install subversion
+ ${{ matrix.extra_packages }}
+
- name: Use LF for Git checkout
run: |
git config --global core.autocrlf false