Add macOS build action (#1059)

Fixes #1051 

This adds basic PR build action on macOS to confirm we keep builds green
for developers using mac
This commit is contained in:
Pavel Punsky 2022-11-03 11:24:10 -07:00 committed by GitHub
parent d3f0ad3be6
commit 730996b09a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

33
.github/workflows/macos.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: C/C++ CI macoS
on:
push:
branches: [ $default-branch ]
pull_request:
types: [ opened, reopened, synchronize ]
jobs:
builds:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
brew update
brew install \
wget \
pkg-config \
libevent \
openssl@1.1 \
sqlite \
hiredis \
mongo-c-driver \
libmicrohttpd
- name: configure
run: PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/openssl@1.1/lib/pkgconfig ./configure
- name: make
run: make
- name: make check
run: make check
- name: apps tests
run: cd examples && ./run_tests.sh