From 06eb125de3df6fa0652259deb7a712bb7dfeb966 Mon Sep 17 00:00:00 2001 From: "Alina (Xi) Li" Date: Thu, 16 Apr 2026 10:28:55 -0700 Subject: [PATCH] Add debug workflow for ODBC Linux Update cpp_extra.yml --- .github/workflows/cpp_extra.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cpp_extra.yml b/.github/workflows/cpp_extra.yml index 5aaad7f3933..9cb986d9cdc 100644 --- a/.github/workflows/cpp_extra.yml +++ b/.github/workflows/cpp_extra.yml @@ -351,7 +351,7 @@ jobs: odbc-linux: needs: check-labels - name: ODBC Linux + name: ODBC ${{ matrix.build-type }} ${{ matrix.title }} runs-on: ubuntu-latest if: >- needs.check-labels.outputs.force == 'true' || @@ -360,6 +360,16 @@ jobs: timeout-minutes: 75 strategy: fail-fast: false + matrix: + include: + - image: ubuntu-cpp-odbc + title: AMD64 Ubuntu + build-type: release + - image: ubuntu-cpp-odbc + title: AMD64 Ubuntu + build-type: debug + run-options: >- + -e ARROW_BUILD_TYPE=DEBUG env: ARCH: amd64 ARCHERY_DEBUG: 1 @@ -377,8 +387,8 @@ jobs: uses: actions/cache@v5 with: path: .docker - key: ubuntu-cpp-odbc-${{ hashFiles('cpp/**') }} - restore-keys: ubuntu-cpp-odbc- + key: ${{ matrix.image }}-${{ matrix.build-type }}-${{ hashFiles('cpp/**') }} + restore-keys: ${{ matrix.image }}-${{ matrix.build-type }}- - name: Setup Python on hosted runner uses: actions/setup-python@v6 with: @@ -393,7 +403,7 @@ jobs: # GH-40558: reduce ASLR to avoid ASAN/LSAN crashes sudo sysctl -w vm.mmap_rnd_bits=28 source ci/scripts/util_enable_core_dumps.sh - archery docker run ubuntu-cpp-odbc + archery docker run ${{ matrix.run-options || '' }} ${{ matrix.image }} - name: Docker Push if: >- success() && @@ -404,7 +414,7 @@ jobs: ARCHERY_DOCKER_USER: ${{ secrets.DOCKERHUB_USER }} ARCHERY_DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }} continue-on-error: true - run: archery docker push ubuntu-cpp-odbc + run: archery docker push ${{ matrix.image }} odbc-macos: needs: check-labels