-
Notifications
You must be signed in to change notification settings - Fork 29
69 lines (67 loc) · 1.93 KB
/
open62541-compatibility.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
name: Compatibility
on:
push:
branches: [master]
pull_request:
jobs:
external-open62541:
name: >-
${{ matrix.version }}
(${{ matrix.build_type }},
${{ matrix.library_type }},
${{ matrix.amalgamation && 'amalgamated' || 'default' }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
version:
- v1.0.6
- v1.1.6
- v1.2.9
- v1.3.11
build_type: ["Debug", "Release"]
library_type: ["static", "shared"]
amalgamation: [false, true]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Checkout open62541 version ${{ matrix.version }}
uses: actions/checkout@v4
with:
repository: open62541/open62541
ref: ${{ matrix.version }}
path: open62541
submodules: recursive
- uses: aminya/setup-cpp@v1
with:
ninja: true
- name: Build & install open62541
env:
CFLAGS: "-Wstrict-overflow=0" # disable strict-overflow error in v1.1
run: |
cd open62541
mkdir build
cd build
cmake -G Ninja \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DBUILD_SHARED_LIBS=${{ matrix.library_type == 'shared' }} \
-DUA_ENABLE_AMALGAMATION=${{ matrix.amalgamation }} \
-DUA_ENABLE_SUBSCRIPTIONS=ON \
-DUA_ENABLE_SUBSCRIPTIONS_EVENTS=ON \
..
cmake --build .
sudo cmake --install .
- name: Build
run: |
mkdir build
cd build
cmake -G Ninja \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
-DUAPP_BUILD_TESTS=ON \
-DUAPP_BUILD_EXAMPLES=ON \
-DUAPP_INTERNAL_OPEN62541=OFF \
..
cmake --build .
- name: Run tests
run: ctest --test-dir build --output-on-failure