Some actions do not build with prometheus - adding prometheus tests fails the jobs cmake build tests did not run due to different target folder (while reporting success) - now the bin folder is detected
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
name: MacOS
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
types: [ opened, reopened, synchronize ]
|
|
|
|
jobs:
|
|
builds:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ 'macos-12', 'macos-13', 'macos-14' ]
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Brew - Relink Python
|
|
run: |
|
|
# Unlink and re-link to prevent errors when github mac runner images
|
|
# install python outside of brew, for example:
|
|
# https://github.com/orgs/Homebrew/discussions/3895
|
|
# https://github.com/actions/setup-python/issues/577
|
|
# https://github.com/actions/runner-images/issues/6459
|
|
# https://github.com/actions/runner-images/issues/6507
|
|
# https://github.com/actions/runner-images/issues/2322
|
|
brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done
|
|
|
|
- name: Brew - Update pkg listings
|
|
run: |
|
|
brew update
|
|
|
|
- name: Brew - Install Dependencies
|
|
run: |
|
|
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: Compile
|
|
run: make
|
|
|
|
- name: Unit Test
|
|
run: make check
|
|
|
|
- name: Integration Test
|
|
working-directory: examples
|
|
run: ./run_tests.sh && ./run_tests_conf.sh
|