crowd: expend to 108 questions (68 formal questions) #528
Workflow file for this run
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
name: CMake | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build-on-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
sudo apt update | |
sudo apt install gcc-12 g++-12 | |
- name: Install dependences | |
run: sudo apt-get remove libunwind-14 -y; sudo apt-get install -y libgoogle-glog-dev libgflags-dev libgtest-dev libsqlite3-dev libqt5webkit5-dev python3-pybind11 | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Configure CMake | |
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DWITH_GCOV=OFF -DWITH_ASAN=OFF -DWITH_GLOG=OFF -DWITH_SQLITE=ON -DWITH_TEST=ON -DWITH_SIMULATOR=ON -DWITH_GAMES=ON | |
shell: bash | |
env: | |
CC: gcc-12 | |
CXX: g++-12 | |
- name: Build | |
run: cmake --build build --config ${{env.BUILD_TYPE}} -j15 | |
shell: bash | |
env: | |
CC: gcc-12 | |
CXX: g++-12 | |
- name: Test | |
working-directory: build | |
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure | |
build-on-windows: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- name: Install dependences | |
uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
install: >- | |
git | |
mingw-w64-x86_64-cmake | |
mingw-w64-x86_64-make | |
mingw-w64-x86_64-gcc | |
mingw-w64-x86_64-qtwebkit | |
mingw-w64-x86_64-gflags | |
mingw-w64-x86_64-gtest | |
mingw-w64-x86_64-glog | |
mingw-w64-x86_64-pybind11 | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Configure CMake | |
run: cmake -G "MinGW Makefiles" -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DWITH_GCOV=OFF -DWITH_ASAN=OFF -DWITH_GLOG=OFF -DWITH_SQLITE=ON -DWITH_TEST=ON -DWITH_SIMULATOR=ON -DWITH_GAMES=ON | |
- name: Build | |
working-directory: build | |
run: mingw32-make -j15 | |
- name: Test | |
working-directory: build | |
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure | |