mirror of
https://github.com/coturn/coturn.git
synced 2025-12-25 01:41:00 +01:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
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@v4
|
|
- name: Install dependencies
|
|
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
|
|
|
|
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 |