-
Notifications
You must be signed in to change notification settings - Fork 68
169 lines (164 loc) · 5.95 KB
/
anjay-tests.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# Copyright 2017-2023 AVSystem <avsystem@avsystem.com>
# AVSystem Anjay LwM2M SDK
# All rights reserved.
#
# Licensed under the AVSystem-5-clause License.
# See the attached LICENSE file for details.
name: Anjay tests
on: [push]
jobs:
ubuntu1804-compilers-test:
runs-on: ubuntu-latest
container: avsystemembedded/anjay-travis:ubuntu-18.04-2.0
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
steps:
# NOTE: workaround for https://github.com/actions/checkout/issues/760
- run: git config --global safe.directory '*'
# NOTE: v2 requires Git 2.18 for submodules, it's not present in the image
- uses: actions/checkout@v1
with:
submodules: recursive
- run: apt-get update
- run: apt-get -y install $CC $CXX
- run: ./devconfig --with-valgrind --without-analysis -DWITH_VALGRIND_TRACK_ORIGINS=OFF -DWITH_URL_CHECK=OFF -DWITH_IPV6=OFF
- run: env CC=gcc LC_ALL=C.UTF-8 make -j
- run: env CC=gcc LC_ALL=C.UTF-8 make check
strategy:
fail-fast: false
matrix:
include:
- CC: gcc-7
CXX: g++
- CC: clang-6.0
CXX: clang++-6.0
ubuntu2004-compilers-test:
runs-on: ubuntu-latest
container: avsystemembedded/anjay-travis:ubuntu-20.04-2.0
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
steps:
# NOTE: workaround for https://github.com/actions/checkout/issues/760
- run: git config --global safe.directory '*'
# NOTE: v2 requires Git 2.18 for submodules, it's not present in the image
- uses: actions/checkout@v1
with:
submodules: recursive
- run: apt-get update
- run: apt-get -y install $CC $CXX
- run: ./devconfig --with-valgrind --without-analysis -DWITH_VALGRIND_TRACK_ORIGINS=OFF -DWITH_URL_CHECK=OFF -DWITH_IPV6=OFF
- run: env CC=gcc LC_ALL=C.UTF-8 make -j
- run: env CC=gcc LC_ALL=C.UTF-8 make check
strategy:
fail-fast: false
matrix:
include:
- CC: gcc-8
CXX: g++-8
- CC: gcc-9
CXX: g++-9
- CC: gcc-10
CXX: g++-10
- CC: clang-10
CXX: clang++-10
ubuntu2204-compilers-test:
runs-on: ubuntu-latest
container: avsystemembedded/anjay-travis:ubuntu-22.04-2.0
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
MEM_CHECK_TOOL: ${{ matrix.MEM_CHECK_TOOL }}
steps:
# NOTE: workaround for https://github.com/actions/checkout/issues/760
- run: git config --global safe.directory '*'
# NOTE: v2 requires Git 2.18 for submodules, it's not present in the image
- uses: actions/checkout@v1
with:
submodules: recursive
- run: apt-get update
- run: apt-get -y install $CC $CXX
- run: ./devconfig $MEM_CHECK_TOOL --without-analysis -DWITH_VALGRIND_TRACK_ORIGINS=OFF -DWITH_URL_CHECK=OFF -DWITH_IPV6=OFF
- run: env CC=gcc LC_ALL=C.UTF-8 make -j
- run: env CC=gcc LC_ALL=C.UTF-8 make check
strategy:
fail-fast: false
matrix:
include:
- CC: gcc-11
CXX: g++-11
MEM_CHECK_TOOL: --with-valgrind
- CC: gcc-12
CXX: g++-12
MEM_CHECK_TOOL: --with-valgrind
- CC: clang-11
CXX: clang++-11
MEM_CHECK_TOOL: --with-valgrind
- CC: clang-12
CXX: clang++-12
MEM_CHECK_TOOL: --with-valgrind
- CC: clang-13
CXX: clang++-13
MEM_CHECK_TOOL: --with-valgrind
- CC: clang-14
CXX: clang++-14
MEM_CHECK_TOOL: --without-memcheck # NOTE: workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1758782
rockylinux9-compilers-test:
runs-on: ubuntu-latest
container: avsystemembedded/anjay-travis:rockylinux-9-2.0
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
steps:
# NOTE: workaround for https://github.com/actions/checkout/issues/760
- run: git config --global safe.directory '*'
# NOTE: v2 requires Git 2.18 for submodules, it's not present in the image
- uses: actions/checkout@v1
with:
submodules: recursive
- run: dnf update -y
- run: dnf install -y $CC
# Solve issues with EPERM when running dumpcap
- run: setcap '' $(which dumpcap)
- run: ./devconfig --with-valgrind --without-analysis -DWITH_VALGRIND_TRACK_ORIGINS=OFF -DWITH_URL_CHECK=OFF -DWITH_IPV6=OFF
- run: env CC=gcc LC_ALL=C.UTF-8 make -j
- run: env CC=gcc LC_ALL=C.UTF-8 make check
strategy:
fail-fast: false
matrix:
include:
- CC: gcc
CXX: g++
- CC: clang
CXX: clang++
macOS-compilers-test:
runs-on: macos-12
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
COMPILER_VERSION: ${{ matrix.COMPILER_VERSION }}
steps:
# NOTE: v2 requires Git 2.18 for submodules, it's not present in the image
- uses: actions/checkout@v1
with:
submodules: recursive
- run: brew update
# NOTE: latest known compatible versions are openssl@3--3.1.1 and mbedtls--3.4.0
# NOTE: try the brew install command twice to work around "brew link" errors
- run: INSTALL_CMD="brew install openssl mbedtls $COMPILER_VERSION"; $INSTALL_CMD || $INSTALL_CMD
# NOTE: The above command may have installed a new version of Python, that's why we launch it weirdly
- run: /usr/bin/env python3 -m pip install -r requirements.txt
- run: env JAVA_HOME="$JAVA_HOME_17_X64" ./devconfig --with-asan --without-analysis --no-examples -DWITH_VALGRIND_TRACK_ORIGINS=OFF -DWITH_URL_CHECK=OFF -DWITH_IPV6=OFF
- run: LC_ALL=en_US.UTF-8 make -j
- run: LC_ALL=en_US.UTF-8 make check
strategy:
fail-fast: false
matrix:
include:
- CC: gcc-12
CXX: g++-12
COMPILER_VERSION: gcc@12
- CC: cc
CXX: c++
COMPILER_VERSION: llvm