-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (47 loc) · 1.42 KB
/
memtests.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
name: "Memory tests"
on:
push:
branches: [ "*" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '0 0 * * 5'
jobs:
analyze:
name: Analyse, Compile. Unit Tests and Coverage.
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{github.token}} # needs other token https://github.com/styfle/cancel-workflow-action/issues/7
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install deps
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends build-essential \
cmake gcovr valgrind python3 bison \
libcurl4-openssl-dev libjansson-dev doxygen graphviz libmbedtls-dev
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- run: pip install -r requirements.txt
- name: Run Tests and Coverage
shell: bash
run: |
mkdir -p build
cd build
rm -rf *
cmake .. -DCMAKE_BUILD_TYPE=TEST "-DCMAKE_C_COMPILER=/bin/gcc" "-DCMAKE_CXX_COMPILER=/bin/g++"
cmake --build . -j
ctest -V