svn commit: r1926389 - /subversion/trunk/.github/workflows/cmake.yml

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
Author: rinrab
Date: Fri Jun 13 13:45:18 2025
New Revision: 1926389

URL: http://svn.apache.org/viewvc?rev=1926389&view=rev
Log:
* .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.

Modified:
    subversion/trunk/.github/workflows/cmake.yml

Modified: subversion/trunk/.github/workflows/cmake.yml
URL: http://svn.apache.org/viewvc/subversion/trunk/.github/workflows/cmake.yml?rev=1926389&r1=1926388&r2=1926389&view=diff
==============================================================================
--- subversion/trunk/.github/workflows/cmake.yml (original)
+++ subversion/trunk/.github/workflows/cmake.yml Fri Jun 13 13:45:18 2025
@@ -83,6 +83,11 @@ jobs:
               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 @@ jobs:
         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 @@ jobs:
           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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.