-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use github CI and fix build on modern Boost (#15)
- Loading branch information
Showing
23 changed files
with
458 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: CI | ||
|
||
'on': | ||
schedule: | ||
- cron: '30 6 * * 1' # Every Monday at 6:30 | ||
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 libpng-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 | ||
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.