Skip to content

Make array & new_array const-correct in test_is_string_in_array. #506

Make array & new_array const-correct in test_is_string_in_array.

Make array & new_array const-correct in test_is_string_in_array. #506

name: MacOS Unit Tests
on:
pull_request:
branches: [ master ]
jobs:
macos_unit_tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: brew install lmdb automake openssl pcre2 autoconf libtool
- name: Check tools
run: command -v libtool && command -v automake && command -v autoconf
- name: Check tools versions
run: libtool -V && automake --version && autoconf --version
- name: Run autotools / configure
run: >
LDFLAGS="-L`brew --prefix lmdb`/lib -L`brew --prefix openssl`/lib -L`brew --prefix pcre2`/lib"
CPPFLAGS="-I`brew --prefix lmdb`/include -I`brew --prefix openssl`/include -I`brew --prefix pcre2`/include"
PATH="/opt/homebrew/opt/libtool/libexec/gnubin:$PATH"
./autogen.sh --enable-debug
- name: Compile and link
run: make -j8 CFLAGS="-Werror -Wall"
- name: Run unit tests
run: make -C tests/unit check