Skip to content

Commit 3dd6bcf

Browse files
committed
Add OSX tests.
1 parent 97a8550 commit 3dd6bcf

File tree

2 files changed

+62
-13
lines changed

2 files changed

+62
-13
lines changed

.github/workflows/test-osx.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Test OSX
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: macOS-latest
8+
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python-version: [3.6]
13+
cxx: [clang++]
14+
std: [c++98, c++11, c++14] # TODO: c++17 is failing !
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: setup python
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: setup prerequisites
23+
run: |
24+
brew install boost
25+
python -m pip install --upgrade pip
26+
python -m pip install setuptools faber
27+
- name: build
28+
run: |
29+
python --version
30+
${{ matrix.cxx }} --version
31+
faber -v
32+
sed -e "s/\$PYTHON/python/g" .ci/faber > ~/.faber
33+
faber \
34+
--builddir=build \
35+
cxx.name=${{ matrix.cxx }} \
36+
cxxflags=-std=${{ matrix.std }} \
37+
-j`sysctl -n hw.ncpu`
38+
- name: test
39+
run: |
40+
faber \
41+
--builddir=build\
42+
cxx.name=${{ matrix.cxx }} \
43+
cxxflags=-std=${{ matrix.std }} \
44+
-j`sysctl -n hw.ncpu` \
45+
test.report
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
name: Build and Test - Linux Docker
1+
name: Test Ubuntu
22

3-
on: [ push, pull_request ]
3+
on: [push, pull_request]
44

55
jobs:
66
build:
7-
8-
# ubuntu-latest will be shortly upgrading to this
9-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-latest
108

119
strategy:
1210
fail-fast: false
1311
matrix:
14-
python: [ python, python3 ]
15-
cxx: [ g++, clang++ ]
16-
std: [ c++98, c++11]
12+
python: [python, python3]
13+
cxx: [g++, clang++]
14+
std: [c++98, c++11, c++14, c++17]
1715
include:
1816
# Add the appropriate docker image for each compiler.
1917
# The images from teeks99/boost-python-test already have boost::python
@@ -30,18 +28,24 @@ jobs:
3028
steps:
3129
- uses: actions/checkout@v2
3230

33-
- name: Test
31+
- name: build
3432
run: |
3533
${{ matrix.python }} --version
3634
${{ matrix.cxx }} --version
3735
faber -v
38-
ls -l ${BOOST_PY_DEPS}
39-
4036
sed -e "s/\$PYTHON/${{ matrix.python }}/g" .ci/faber > ~/.faber
41-
4237
faber \
4338
--with-boost-include=${BOOST_PY_DEPS} \
44-
--builddir=build test.report \
39+
--builddir=build \
4540
cxx.name=${{ matrix.cxx }} \
4641
cxxflags=-std=${{ matrix.std }} \
4742
-j`nproc`
43+
- name: test
44+
run: |
45+
faber \
46+
--with-boost-include=${BOOST_PY_DEPS} \
47+
--builddir=build \
48+
cxx.name=${{ matrix.cxx }} \
49+
cxxflags=-std=${{ matrix.std }} \
50+
-j`nproc` \
51+
test.report

0 commit comments

Comments
 (0)