From 8a6ad6d9fea961010dcb93091c11e45a879fd03e Mon Sep 17 00:00:00 2001 From: Joao Paulo Magalhaes Date: Thu, 27 Jun 2024 20:54:57 +0100 Subject: [PATCH] re #440: add repro to CI --- .github/workflows/gcc.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/gcc.yml b/.github/workflows/gcc.yml index 2a16edb27..e3660d926 100644 --- a/.github/workflows/gcc.yml +++ b/.github/workflows/gcc.yml @@ -71,6 +71,39 @@ jobs: - {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32} - {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32} + #---------------------------------------------------------------------------- + gcc_O2: # see https://github.com/biojppm/rapidyaml/issues/440 + name: gcc_O2/${{matrix.cxx}}/c++${{matrix.std}} + continue-on-error: true + if: always() # https://stackoverflow.com/questions/62045967/github-actions-is-there-a-way-to-continue-on-error-while-still-getting-correct + runs-on: ubuntu-latest + container: ghcr.io/biojppm/c4core/ubuntu22.04:latest # use the docker image + strategy: + fail-fast: false + matrix: + include: + - {std: 11, gcc: 12 , bt: Release} + env: {STD: "${{matrix.std}}", CXX_: "${{matrix.gcc}}", BT: "${{matrix.bt}}", BITLINKS: "${{matrix.bitlinks}}", VG: "${{matrix.vg}}", SAN: "${{matrix.san}}", LINT: "${{matrix.lint}}", OS: "${{matrix.os}}"} + steps: + - {name: checkout, uses: actions/checkout@v3, with: {submodules: recursive}} + - run: git config --system --add safe.directory '*' # needed for running in the docker image. see https://github.com/actions/checkout/issues/1169 + - run: c4core-install g++-${{matrix.gcc}} + - {name: show info, run: source .github/setenv.sh && c4_show_info} + - name: configure + run: | + cmake -S . -B build_o2 \ + -DCMAKE_CXX_COMPILER=g++-${{matrix.gcc}} \ + -DCMAKE_C_COMPILER=gcc-${{matrix.gcc}} \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2 -g -DNDEBUG" \ + -DRYML_BUILD_TESTS:BOOL=ON \ + -DRYML_DBG:BOOL=OFF + - name: build + run: | + cmake --build build_o2 --target ryml-test-build -j --verbose + - name: run + run: | + cmake --build build_o2 --target ryml-test-run + #---------------------------------------------------------------------------- gcc_tabtokens: name: gcc_canary/${{matrix.cxx}}/c++${{matrix.std}}/${{matrix.bt}}