Merge pull request #508 from zeromq/gfa/gha-macos

Add macos CI
This commit is contained in:
Gudmundur Adalsteinsson 2021-07-16 17:06:45 +00:00 committed by GitHub
commit 3f2ba6b54a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,7 @@ jobs:
libzmq: "4.3.4"
libzmqbuild: "cmake"
coverage: "-DCOVERAGE=ON"
aptinstall: "lcov"
# clang
- os: "ubuntu-latest"
cppstd: "17"
@ -70,6 +71,15 @@ jobs:
drafts: "ON"
libzmq: "4.3.4"
libzmqbuild: "cmake"
# macos
- os: "macos-latest"
cppstd: "17"
cc: "clang"
cxx: "clang++"
drafts: "OFF"
libzmq: "4.3.4"
libzmqbuild: false
brewinstall: "zeromq"
# windows
- os: "windows-2016"
cppstd: "14"
@ -94,14 +104,18 @@ jobs:
VERBOSE: 1
THREADS: 2
BUILDTYPE: "Debug"
COVERAGE: "OFF" # TODO
steps:
- uses: actions/checkout@v2
- name: install_deps
if: matrix.aptinstall
run: sudo apt install ${{matrix.aptinstall}}
run: |
if [ ! -z "${{ matrix.aptinstall }}" ]; then
sudo apt install -y ${{ matrix.aptinstall }}
fi
if [ ! -z "${{ matrix.brewinstall }}" ]; then
brew install ${{ matrix.brewinstall }}
fi
- name: get_libzmq
run: |
@ -165,7 +179,6 @@ jobs:
- name: lcov
if: ${{ matrix.coverage && success() }}
run: |
sudo apt install -y lcov
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info -o coverage_filtered.info \
'/usr/include/*' \