CI: add macOS test runners

pull/154/head
Ryan Schmidt 3 years ago committed by Adrian Perez
parent 2346fa9bde
commit 860a9cbd5e

@ -7,8 +7,8 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [macos-latest, ubuntu-18.04]
compiler: [gcc, clang] compiler: [gcc, clang]
dynamic: [0, 1]
nginx: nginx:
# Mainline # Mainline
- 1.21.6 - 1.21.6
@ -18,10 +18,15 @@ jobs:
- 1.9.15 - 1.9.15
# Oldest supported version. # Oldest supported version.
- 0.8.55 - 0.8.55
dynamic: [0, 1]
exclude: exclude:
- nginx: 0.8.55 - nginx: 0.8.55
dynamic: 1 dynamic: 1
runs-on: ubuntu-18.04 - nginx: 0.8.55
os: macos-latest
- compiler: gcc
os: macos-latest
runs-on: ${{ matrix.os }}
env: env:
CFLAGS: "-Wno-error" CFLAGS: "-Wno-error"
steps: steps:
@ -29,12 +34,16 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install Packages - name: Install Packages
run: | run: |
case $RUNNER_OS in
Linux )
sudo apt update sudo apt update
sudo apt install -y libpcre3-dev libssl-dev sudo apt install -y libpcre3-dev libssl-dev
;;
* )
;;
esac
t/get-pup || echo 'Tests needing pup will be skipped' t/get-pup || echo 'Tests needing pup will be skipped'
- name: Test - name: Test
env: env:
CC: ${{ matrix.compiler }} CC: ${{ matrix.compiler }}
run: | run: t/build-and-run ${{ matrix.nginx }} ${{ matrix.dynamic }}
CC=${{ matrix.compiler }}
t/build-and-run ${{ matrix.nginx }} ${{ matrix.dynamic }}

Loading…
Cancel
Save