Skip to content

Commit 3f2ba6b

Browse files
authored
Merge pull request #508 from zeromq/gfa/gha-macos
Add macos CI
2 parents d805bd3 + cb44ec4 commit 3f2ba6b

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
libzmq: "4.3.4"
6363
libzmqbuild: "cmake"
6464
coverage: "-DCOVERAGE=ON"
65+
aptinstall: "lcov"
6566
# clang
6667
- os: "ubuntu-latest"
6768
cppstd: "17"
@@ -70,6 +71,15 @@ jobs:
7071
drafts: "ON"
7172
libzmq: "4.3.4"
7273
libzmqbuild: "cmake"
74+
# macos
75+
- os: "macos-latest"
76+
cppstd: "17"
77+
cc: "clang"
78+
cxx: "clang++"
79+
drafts: "OFF"
80+
libzmq: "4.3.4"
81+
libzmqbuild: false
82+
brewinstall: "zeromq"
7383
# windows
7484
- os: "windows-2016"
7585
cppstd: "14"
@@ -94,14 +104,18 @@ jobs:
94104
VERBOSE: 1
95105
THREADS: 2
96106
BUILDTYPE: "Debug"
97-
COVERAGE: "OFF" # TODO
98107

99108
steps:
100109
- uses: actions/checkout@v2
101110

102111
- name: install_deps
103-
if: matrix.aptinstall
104-
run: sudo apt install ${{matrix.aptinstall}}
112+
run: |
113+
if [ ! -z "${{ matrix.aptinstall }}" ]; then
114+
sudo apt install -y ${{ matrix.aptinstall }}
115+
fi
116+
if [ ! -z "${{ matrix.brewinstall }}" ]; then
117+
brew install ${{ matrix.brewinstall }}
118+
fi
105119
106120
- name: get_libzmq
107121
run: |
@@ -165,7 +179,6 @@ jobs:
165179
- name: lcov
166180
if: ${{ matrix.coverage && success() }}
167181
run: |
168-
sudo apt install -y lcov
169182
lcov --capture --directory . --output-file coverage.info
170183
lcov --remove coverage.info -o coverage_filtered.info \
171184
'/usr/include/*' \

0 commit comments

Comments
 (0)