-
Notifications
You must be signed in to change notification settings - Fork 108
66 lines (54 loc) · 2.2 KB
/
ci.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
name: CI
'on':
pull_request:
push:
branches:
- second_edition
env:
UBSAN_OPTIONS: print_stacktrace=1
ASAN_OPTIONS: detect_odr_violation=2
jobs:
posix:
strategy:
fail-fast: false
matrix:
include:
- CXX_FLAGS: --coverage -fsanitize=address,leak,undefined
LINK_FLAGS: --coverage
QLIBS: -lasan -lubsan
TOOLSET: gcc-12
CXXTOOLSET: g++-12
GCOV: --gcov-tool gcov-6
os: ubuntu-24.04
info: gcc-12
name: '${{matrix.os}}: ${{matrix.info}}'
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Install deps
run: |
sudo apt update
sudo apt install --allow-downgrades -y git python3-yaml gcc-12 g++-12 qt5-qmake language-pack-ru gdb libc++-dev
- name: Install Boost
run: |
PROJECT_DIR=`pwd`
git init $HOME/boost-local
cd $HOME/boost-local
git remote add --no-tags -t master origin https://github.com/boostorg/boost.git
git fetch --depth=10
git checkout master
git submodule update --init --merge >/dev/null
git status
./bootstrap.sh
./b2 headers
./b2 -j4 toolset=${{ matrix.TOOLSET }} address-model=64 architecture=x86 link=shared --with-program_options --with-filesystem --with-system --with-test --with-atomic --with-thread --with-timer --with-chrono --with-regex --with-random --with-context stage
cd $PROJECT_DIR
- name: Run qmake
run: |
QT_SELECT=qt5 qmake "QMAKE_CXX=${{ matrix.CXXTOOLSET }}" "QMAKE_LINK=${{ matrix.CXXTOOLSET }}" "QMAKE_CXXFLAGS+=${{ matrix.CXX_FLAGS }}" "QMAKE_LFLAGS+=${{ matrix.LINK_FLAGS }}" "LIBS+=${{ matrix.QLIBS }}" "BOOST_PATH=$HOME/boost-local" "CONFIG+=debug" BoostBook.pro
- name: Build
run: |
make -j4
- name: Test
run: |
python ./test.py -v