diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0fb1f6a..b6295a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ name: CI Tests on: workflow_dispatch: push: - branches: [main] + branches: [main, ci] pull_request: branches: [main] jobs: @@ -26,17 +26,14 @@ jobs: - {name: "Ubuntu GCC 12", os: ubuntu-24.04, toolchain: "gcc-12", cmake_args: "-G \"Ninja Multi-Config\" -DCMAKE_CONFIGURATION_TYPES=\"RelWithDebInfo;Asan\" "} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'true' - - uses: seanmiddleditch/gha-setup-ninja@master - name: Activate verbose shell run: set -x - name: Install LLVM+Clang if: startsWith(matrix.config.name, 'Ubuntu Clang') run: | - set -x - cat /etc/lsb-release # Remove existing Clang installations. sudo apt-get remove \ clang-${{matrix.config.installed_clang_version}} \ @@ -71,7 +68,6 @@ jobs: - name: Install GCC if: startsWith(matrix.config.name, 'Ubuntu GCC') run: | - set -x # Remove existing GCC installations. sudo apt-get remove gcc-13 g++-13 gcc-14 g++-14 gcc g++ sudo apt update @@ -83,18 +79,14 @@ jobs: g++-${GCC_VERSION} --version - name: CMake Configure run: | - set -x echo ${{ matrix.config.cmake_args }} echo ${{ matrix.config.toolchain }} - rm -rf .build cmake ${{ matrix.config.cmake_args }} -DCMAKE_TOOLCHAIN_FILE="etc/${{ matrix.config.toolchain }}-toolchain.cmake" -B .build -S . - name: CMake Build run: | - set -x cmake --build .build --config Asan --target all -- -k 0 - name: CMake Test run: | - set -x [[ ! -z "${{ matrix.config.asan_options }}" ]] && export ASAN_OPTIONS="${{ matrix.config.asan_options }}" ctest --build-config Asan --output-on-failure --test-dir .build