From 4c97c0438ee1d52157b16ca1c7d738a96c9789be Mon Sep 17 00:00:00 2001 From: Micah Andersen Date: Fri, 22 Nov 2024 09:56:52 -0500 Subject: [PATCH] GitHub Actions build testing update - fix macOS build + add mod_authz_unixgroup to build testing: - install apache on mac with homebrew (newer GH mac images do not include webservers unlike windows/linux) - mac homebrew no longer uses root/sudo - add mod_authz_unixgroup to build testing for linux/mac (not supported on windows, as there are no UNIX groups there) --- .github/workflows/build.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9239b61..cdbff0d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,11 +20,20 @@ jobs: - name: install apache (ubuntu) if: runner.os == 'Linux' run: sudo apt-get install apache2 apache2-dev + + - name: install apache (macos) + if: runner.os == 'macOS' + run: brew install httpd - - name: make (GCC) + - name: make mod_authnz_external (POSIX-GCC) if: runner.os != 'Windows' run: make working-directory: ./mod_authnz_external + + - name: make mod_authz_unixgroup (POSIX-GCC) + if: runner.os != 'Windows' + run: make + working-directory: ./mod_authz_unixgroup - name: nmake (MSVC) if: runner.os == 'Windows' @@ -41,10 +50,15 @@ jobs: .\winbuild.bat working-directory: ./mod_authnz_external - - name: make install (POSIX-GCC) + - name: make install mod_authnz_external (POSIX-GCC) if: runner.os != 'Windows' run: sudo make install working-directory: ./mod_authnz_external + + - name: make install mod_authz_unixgroup (POSIX-GCC) + if: runner.os != 'Windows' + run: sudo make install + working-directory: ./mod_authz_unixgroup - name: install to apache (windows) if: runner.os == 'Windows' @@ -62,7 +76,7 @@ jobs: - name: restart apache (macos) if: runner.os == 'macOS' - run: sudo brew services restart httpd + run: brew services restart httpd - name: restart apache (windows) if: runner.os == 'Windows'