From 730996b09aad5a1182b5a772817ce4efcbf023b6 Mon Sep 17 00:00:00 2001 From: Pavel Punsky Date: Thu, 3 Nov 2022 11:24:10 -0700 Subject: [PATCH] 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 --- .github/workflows/macos.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/macos.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..cd9ec46 --- /dev/null +++ b/.github/workflows/macos.yml @@ -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 \ No newline at end of file