Skip to content

Commit

Permalink
Add macos CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gummif committed Jul 16, 2021
1 parent d805bd3 commit cb44ec4
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
libzmq: "4.3.4"
libzmqbuild: "cmake"
coverage: "-DCOVERAGE=ON"
aptinstall: "lcov"
# clang
- os: "ubuntu-latest"
cppstd: "17"
Expand All @@ -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"
Expand All @@ -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: |
Expand Down Expand Up @@ -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/*' \
Expand Down

0 comments on commit cb44ec4

Please sign in to comment.