-
Notifications
You must be signed in to change notification settings - Fork 89
78 lines (73 loc) · 2.59 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Celix MacOS
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
build-conan:
runs-on: macOS-11
timeout-minutes: 120
steps:
- name: Checkout source code
uses: actions/checkout@v3.3.0
- name: Install conan
run: |
brew install python
pip3 install -U conan==1.59.0
- name: Setup Conan Profile
run: |
conan profile new default --detect
conan profile update settings.build_type=Release default
- name: Install Dependencies
env:
CONAN_BUILD_OPTIONS: |
-o celix:enable_testing=True
-o celix:enable_address_sanitizer=True
-o celix:build_all=True
-o celix:enable_testing_for_cxx14=True
-o celix:enable_testing_dependency_manager_for_cxx11=True
run: |
#force reequire libcurl 7.64.1, due to a sha256 verify issue in libcurl/7.87.0
conan install . celix/ci -pr:b default -pr:h default -if build ${CONAN_BUILD_OPTIONS} -b missing -b cpputest --require-override=libcurl/7.64.1 --require-override=openssl/1.1.1s
- name: Build
run: |
conan build . -bf build --configure
conan build . -bf build --build
- name: Test
run: |
cd build
source activate_run.sh
ctest --output-on-failure
source deactivate_run.sh
- name: Test Installed Celix
run: |
conan create -pr:b default -pr:h default -tf examples/conan_test_package -tbf test-build -o celix:celix_cxx17=True -o celix:celix_install_deprecated_api=True --require-override=libcurl/7.64.1 --require-override=openssl/1.1.1s .
build-brew:
runs-on: macOS-latest
timeout-minutes: 120
steps:
- name: Checkout source code
uses: actions/checkout@v3.3.0
- name: Install dependencies
run: |
brew update
brew install lcov zeromq czmq cpputest jansson rapidjson libzip
- name: Build
env:
BUILD_OPTIONS: |
-DENABLE_TESTING=ON
-DENABLE_TESTING_DEPENDENCY_MANAGER_FOR_CXX11=ON
-DENABLE_TESTING_FOR_CXX14=ON
-DENABLE_ADDRESS_SANITIZER=ON
-DCMAKE_BUILD_TYPE=Release
run: |
mkdir build install
cd build
cmake ${BUILD_OPTIONS} -DCMAKE_INSTALL_PREFIX=../install ..
make -j && make install
- name: Test
run: |
cd $GITHUB_WORKSPACE/build
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH:$(pwd)/utils:$(pwd)/framework:$(pwd)/dfi
ctest --output-on-failure