Minor fixes to be compatible with C++23 with Clang 19. For issue #164. #141
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: Test on Linux | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
description: 'Run the tests with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | |
required: false | |
default: false | |
schedule: | |
# Run at 8:13 on the 1st day of each month | |
- cron: '13 8 1 * *' | |
jobs: | |
Ubuntu-24-10: | |
runs-on: ubuntu-latest | |
container: polettimarco/fruit-basesystem:ubuntu-24.10 | |
env: | |
N_JOBS: 2 | |
ASAN_OPTIONS: "" | |
OS: "linux" | |
COMPILER: ${{ matrix.config.compiler }} | |
STLARG: ${{ matrix.config.stlarg }} | |
CXX_STANDARD: ${{ matrix.config.cxx_standard }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: test | |
run: extras/scripts/postsubmit-helper.sh ${{ matrix.config.test }} | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled && failure() }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {compiler: clang-19.0, stlarg: -stdlib=libstdc++, test: ReleasePlain} | |
- {compiler: clang-19.0, stlarg: -stdlib=libstdc++, test: DebugPlain} | |
- {compiler: clang-19.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan} | |
- {compiler: clang-19.0, stlarg: -stdlib=libstdc++, cxx_standard: 23, test: ReleasePlain} | |
- {compiler: clang-19.0, stlarg: -stdlib=libstdc++, cxx_standard: 23, test: DebugPlain} | |
- {compiler: clang-19.0, stlarg: -stdlib=libstdc++, cxx_standard: 23, test: DebugAsanUbsan} | |
- {compiler: gcc-14, test: ReleasePlain} | |
- {compiler: gcc-14, test: DebugPlain} | |
- {compiler: gcc-14, test: DebugAsanUbsan} | |
- {compiler: clang-14.0, stlarg: -stdlib=libstdc++, test: ReleasePlain} | |
- {compiler: clang-14.0, stlarg: -stdlib=libstdc++, test: DebugPlain} | |
# clang-14 has issues in the DebugAsanUbsan configuration | |
- {compiler: clang-16.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan} | |
- {compiler: gcc-11, test: ReleasePlain} | |
- {compiler: gcc-11, test: DebugAsanUbsan} | |
Ubuntu-24-04: | |
runs-on: ubuntu-latest | |
container: polettimarco/fruit-basesystem:ubuntu-24.04 | |
env: | |
N_JOBS: 2 | |
ASAN_OPTIONS: "" | |
OS: "linux" | |
COMPILER: ${{ matrix.config.compiler }} | |
STLARG: ${{ matrix.config.stlarg }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: test | |
run: extras/scripts/postsubmit-helper.sh ${{ matrix.config.test }} | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled && failure() }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {compiler: clang-19.0, stlarg: -stdlib=libstdc++, test: ReleasePlain} | |
- {compiler: clang-19.0, stlarg: -stdlib=libstdc++, test: DebugPlain} | |
- {compiler: clang-19.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan} | |
- {compiler: gcc-12, test: ReleasePlain} | |
- {compiler: gcc-12, test: DebugAsanUbsan} | |
- {compiler: clang-14.0, stlarg: -stdlib=libstdc++, test: ReleasePlain} | |
- {compiler: clang-14.0, stlarg: -stdlib=libstdc++, test: DebugPlain} | |
# clang-14 has issues in the DebugAsanUbsan configuration | |
- {compiler: clang-14.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan} | |
- {compiler: gcc-9, test: ReleasePlain} | |
- {compiler: gcc-9, test: DebugAsanUbsan} | |
Ubuntu-22-04: | |
runs-on: ubuntu-latest | |
container: polettimarco/fruit-basesystem:ubuntu-22.04 | |
env: | |
N_JOBS: 2 | |
ASAN_OPTIONS: "" | |
OS: "linux" | |
COMPILER: ${{ matrix.config.compiler }} | |
STLARG: ${{ matrix.config.stlarg }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: test | |
run: extras/scripts/postsubmit-helper.sh ${{ matrix.config.test }} | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled && failure() }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {compiler: clang-19.0, stlarg: -stdlib=libstdc++, test: ReleasePlain} | |
- {compiler: clang-19.0, stlarg: -stdlib=libstdc++, test: DebugPlain} | |
- {compiler: clang-19.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan} | |
- {compiler: gcc-12, test: ReleasePlain} | |
- {compiler: gcc-12, test: DebugAsanUbsan} | |
- {compiler: clang-11.0, stlarg: -stdlib=libstdc++, test: ReleasePlain} | |
- {compiler: clang-11.0, stlarg: -stdlib=libstdc++, test: DebugPlain} | |
# clang-11 has issues in the DebugAsanUbsan configuration | |
- {compiler: clang-13.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan} | |
- {compiler: gcc-9, test: ReleasePlain} | |
- {compiler: gcc-9, test: DebugAsanUbsan} | |
Ubuntu-20-04: | |
runs-on: ubuntu-latest | |
container: polettimarco/fruit-basesystem:ubuntu-20.04 | |
env: | |
N_JOBS: 2 | |
ASAN_OPTIONS: "" | |
OS: "linux" | |
COMPILER: ${{ matrix.config.compiler }} | |
STLARG: ${{ matrix.config.stlarg }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: test | |
run: extras/scripts/postsubmit-helper.sh ${{ matrix.config.test }} | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled && failure() }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {compiler: clang-10.0, stlarg: -stdlib=libstdc++, test: ReleasePlain} | |
- {compiler: clang-10.0, stlarg: -stdlib=libstdc++, test: DebugPlain} | |
- {compiler: clang-10.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan} | |
- {compiler: gcc-10, test: ReleasePlain} | |
- {compiler: gcc-10, test: DebugAsanUbsan} | |
- {compiler: clang-6.0, stlarg: -stdlib=libstdc++, test: ReleasePlain} | |
- {compiler: clang-6.0, stlarg: -stdlib=libstdc++, test: DebugPlain} | |
- {compiler: clang-6.0, stlarg: -stdlib=libstdc++, test: DebugAsanUbsan} | |
- {compiler: gcc-7, test: ReleasePlain} | |
- {compiler: gcc-7, test: DebugAsanUbsan} |