From bb2af5705438d355317a02a92fc0902f795512ab Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 29 Oct 2023 12:16:54 +0100 Subject: [PATCH] ci: Fix clang build for Ubuntu 22.04 Signed-off-by: Stefan Weil --- .github/workflows/unittest.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 3e58520d90..e879ecdac8 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -15,8 +15,8 @@ jobs: fail-fast: false matrix: config: - - { name: ubuntu-20.04-gcc-unittest, os: ubuntu-20.04, cxx: g++ } - - { name: ubuntu-22.04-clang-unittest, os: ubuntu-22.04, cxx: clang++ } + - { name: ubuntu-20.04-gcc-unittest, os: ubuntu-20.04, cxx: g++, cxxflags: '-g -O2 -fsanitize=address,undefined' } + - { name: ubuntu-22.04-clang-unittest, os: ubuntu-22.04, cxx: clang++, cxxflags: '-g -O2 -fsanitize=address,undefined -stdlib=libc++' } steps: - uses: actions/checkout@v3 with: @@ -43,7 +43,7 @@ jobs: - name: Configure (Linux) run: | ./configure '--disable-shared' 'CXX=${{ matrix.config.cxx }}' \ - 'CXXFLAGS=-g -O2 -fsanitize=address,undefined' + 'CXXFLAGS=${{ matrix.config.cxxflags }}' - name: Make and Install Tesseract run: |