Skip to content

Commit

Permalink
GitHub Actions build testing update - fix macOS build + add mod_authz…
Browse files Browse the repository at this point in the history
…_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)
  • Loading branch information
bimimicah committed Nov 22, 2024
1 parent d1b116c commit 4c97c04
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 4c97c04

Please sign in to comment.