#132 Port Whitebox and C++14 grammar tests to C++ #14
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: ["main"] | |
paths: ["ports/cpp/**"] | |
pull_request: | |
branches: ["main"] | |
paths: ["ports/cpp/**"] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
cmake_build_type: [Asan, Release] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo add-apt-repository universe | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt update | |
sudo apt install build-essential | |
sudo apt install gcc-14 g++-14 | |
- name: Setup ccache | |
uses: hendrikmuhs/ccache-action@v1.2 | |
with: | |
create-symlink: true | |
key: ${{ github.job }}-${{ matrix.os }} | |
- name: Configure | |
working-directory: ${{github.workspace}}/ports/cpp | |
run: | | |
mkdir build | |
cd build | |
CXX=/usr/bin/g++-14 CC=/usr/bin/gcc-14 cmake \ | |
-DANTLR4C3_DEVELOPER=ON \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \ | |
.. | |
- name: Build | |
working-directory: ${{github.workspace}}/ports/cpp/build | |
run: make | |
- name: Unit Test | |
working-directory: ${{github.workspace}}/ports/cpp/build/test | |
run: | | |
ctest | |
cat Testing/Temporary/LastTest.log |