From 5fc94f5fa1c1816fd39cce80aa1ebc94e54e6913 Mon Sep 17 00:00:00 2001 From: PengZheng Date: Mon, 25 Sep 2023 11:12:00 +0800 Subject: [PATCH] Add RelWithDebInfo to Ubuntu CI build. It helps catch issues like #653. --- .github/workflows/ubuntu.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 90081de5d..882a08191 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: compiler: [ [gcc,g++], [clang,clang++] ] - type: [ Debug ] + type: [ Debug, RelWithDebInfo ] timeout-minutes: 120 steps: - name: Checkout source code @@ -100,6 +100,10 @@ jobs: linux-build-apt: runs-on: ubuntu-22.04 + strategy: + fail-fast: false + matrix: + type: [ Debug, RelWithDebInfo ] timeout-minutes: 120 steps: - name: Checkout source code @@ -133,7 +137,7 @@ jobs: uses: actions/cache@v3 with: path: ${{ env.CCACHE_DIR }} - key: ${{ runner.os }}-apt-test-ccache-gcc-Debug-${{ steps.ccache_cache_timestamp.outputs.timestamp }} + key: ${{ runner.os }}-apt-test-ccache-gcc-${{ matrix.type }}-${{ steps.ccache_cache_timestamp.outputs.timestamp }} restore-keys: | ${{ runner.os }}-apt-test-ccache-gcc-Debug- - name: Build @@ -148,7 +152,7 @@ jobs: -DRSA_REMOTE_SERVICE_ADMIN_SHM_V2=ON -DSHELL_BONJOUR=ON -DENABLE_TESTING_ON_CI=ON - -DCMAKE_BUILD_TYPE=Debug + -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DENABLE_CCACHE=ON run: | mkdir build install