|
@@ -1,16 +1,23 @@
|
|
|
-name: C/C++ CI MacOS
|
|
|
+name: MacOS
|
|
|
|
|
|
on:
|
|
|
push:
|
|
|
- branches: [ $default-branch ]
|
|
|
pull_request:
|
|
|
types: [ opened, reopened, synchronize ]
|
|
|
|
|
|
jobs:
|
|
|
builds:
|
|
|
- runs-on: macos-12
|
|
|
+ strategy:
|
|
|
+ fail-fast: false
|
|
|
+ matrix:
|
|
|
+ os: [ 'macos-11', 'macos-12' ]
|
|
|
+ runs-on: ${{ matrix.os }}
|
|
|
+
|
|
|
steps:
|
|
|
- uses: actions/checkout@v4
|
|
|
+ with:
|
|
|
+ fetch-depth: 0
|
|
|
+
|
|
|
- name: Install dependencies
|
|
|
run: |
|
|
|
# Unlink and re-link to prevent errors when github mac runner images
|
|
@@ -32,11 +39,13 @@ jobs:
|
|
|
hiredis \
|
|
|
mongo-c-driver \
|
|
|
libmicrohttpd
|
|
|
- - name: configure
|
|
|
+
|
|
|
+ - name: Configure
|
|
|
run: PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/[email protected]/lib/pkgconfig ./configure
|
|
|
- - name: make
|
|
|
+ - name: Compile
|
|
|
run: make
|
|
|
- - name: make check
|
|
|
+ - name: Unit Test
|
|
|
run: make check
|
|
|
- - name: apps tests
|
|
|
- run: cd examples && ./run_tests.sh
|
|
|
+ - name: Integration Test
|
|
|
+ working-directory: examples
|
|
|
+ run: ./run_tests.sh
|