Skip to content

Commit b77359c

Browse files
committed
Attempt to move ODBC CI to cpp_extra.yml
- Use newest `actions/checkout` Co-Authored-By: alinalibq <alina.li@improving.com>
1 parent 7130de2 commit b77359c

File tree

2 files changed

+15
-26
lines changed

2 files changed

+15
-26
lines changed

.github/workflows/cpp_extra.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ on:
2626
- '.dockerignore'
2727
- '.github/workflows/check_labels.yml'
2828
- '.github/workflows/cpp_extra.yml'
29+
- '.github/workflows/cpp_odbc.yml'
2930
- '.github/workflows/report_ci.yml'
3031
- 'ci/conda_env_*'
3132
- 'ci/docker/**'
@@ -47,6 +48,7 @@ on:
4748
- '.dockerignore'
4849
- '.github/workflows/check_labels.yml'
4950
- '.github/workflows/cpp_extra.yml'
51+
- '.github/workflows/cpp_odbc.yml'
5052
- '.github/workflows/report_ci.yml'
5153
- 'ci/conda_env_*'
5254
- 'ci/docker/**'
@@ -330,12 +332,22 @@ jobs:
330332
cd cpp/examples/minimal_build
331333
../minimal_build.build/arrow-example
332334
335+
odbc:
336+
needs: check-labels
337+
if: >-
338+
needs.check-labels.outputs.force == 'true' ||
339+
contains(fromJSON(needs.check-labels.outputs.ci-extra-labels || '[]'), 'CI: Extra') ||
340+
contains(fromJSON(needs.check-labels.outputs.ci-extra-labels || '[]'), 'CI: Extra: C++')
341+
name: C++ ODBC
342+
uses: ./.github/workflows/cpp_odbc.yml
343+
333344
report-extra-cpp:
334345
if: github.event_name == 'schedule' && always()
335346
needs:
336347
- docker
337348
- jni-linux
338349
- jni-macos
339350
- msvc-arm64
351+
- odbc
340352
uses: ./.github/workflows/report_ci.yml
341353
secrets: inherit

.github/workflows/cpp_odbc.yml

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,7 @@
1818
name: C++ ODBC
1919

2020
on:
21-
push:
22-
branches:
23-
- '**'
24-
- '!dependabot/**'
25-
tags:
26-
- '**'
27-
paths:
28-
- '.github/workflows/cpp_odbc.yml'
29-
- 'ci/scripts/cpp_*'
30-
- 'cpp/src/arrow/flight/sql/odbc/*'
31-
pull_request:
32-
paths:
33-
- '.github/workflows/cpp_odbc.yml'
34-
- 'ci/scripts/cpp_*'
35-
- 'cpp/src/arrow/flight/sql/odbc/*'
36-
schedule:
37-
- cron: '0 13 * * *'
38-
39-
concurrency:
40-
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
41-
cancel-in-progress: true
42-
43-
permissions:
44-
contents: read
21+
workflow_call:
4522

4623
jobs:
4724
windows:
@@ -74,7 +51,7 @@ jobs:
7451
/d 1 `
7552
/f
7653
- name: Checkout Arrow
77-
uses: actions/checkout@v5
54+
uses: actions/checkout@v6
7855
with:
7956
fetch-depth: 0
8057
submodules: recursive
@@ -105,7 +82,7 @@ jobs:
10582
key: cpp-odbc-ccache-windows-x64-${{ hashFiles('cpp/**') }}
10683
restore-keys: cpp-odbc-ccache-windows-x64-
10784
- name: Checkout vcpkg
108-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
85+
uses: actions/checkout@v6
10986
with:
11087
fetch-depth: 0
11188
path: vcpkg

0 commit comments

Comments
 (0)