@@ -63,6 +63,7 @@ concurrency:
6363 cancel-in-progress : true
6464
6565permissions :
66+ actions : read
6667 contents : read
6768
6869env :
9596 runs-on : ubuntu-latest
9697 title : AMD64 Ubuntu 24.04 C++ ASAN UBSAN
9798 ubuntu : 24.04
98- - arch : arm64v8
99+ - arch : arm64/v8
99100 clang-tools : 18
100101 image : ubuntu-cpp
101102 llvm : 18
@@ -119,12 +120,11 @@ jobs:
119120 persist-credentials : false
120121 fetch-depth : 0
121122 submodules : recursive
122- - name : Cache Docker Volumes
123- uses : actions/cache@v5
123+ - name : Restore Docker Volumes
124+ uses : apache/infrastructure- actions/stash/restore@0ba14156c9f4c3cfbe4b0c9f36339ab0f8d81e53
124125 with :
125126 path : .docker
126- key : ${{ matrix.image }}-${{ hashFiles('cpp/**') }}
127- restore-keys : ${{ matrix.image }}-
127+ key : cpp-${{ matrix.image }}
128128 - name : Setup Python on hosted runner
129129 if : |
130130 matrix.runs-on == 'ubuntu-latest'
@@ -149,6 +149,14 @@ jobs:
149149 sudo sysctl -w vm.mmap_rnd_bits=28
150150 source ci/scripts/util_enable_core_dumps.sh
151151 archery docker run ${{ matrix.image }}
152+ - name : Save Docker Volumes
153+ if : ${{ !cancelled() }}
154+ continue-on-error : true
155+ uses : apache/infrastructure-actions/stash/save@0ba14156c9f4c3cfbe4b0c9f36339ab0f8d81e53
156+ with :
157+ path : .docker
158+ key : cpp-${{ matrix.image }}
159+ include-hidden-files : true
152160 - name : Docker Push
153161 if : >-
154162 success() &&
@@ -231,11 +239,6 @@ jobs:
231239 submodules : recursive
232240 - name : Install Dependencies
233241 run : |
234- # pkg-config formula is deprecated but it's still installed
235- # in GitHub Actions runner now. We can remove this once
236- # pkg-config formula is removed from GitHub Actions runner.
237- brew uninstall pkg-config || :
238- brew uninstall pkg-config@0.29.2 || :
239242 # Workaround for https://github.com/grpc/grpc/issues/41755
240243 # Remove once the runner ships a newer Homebrew.
241244 brew update
@@ -259,12 +262,11 @@ jobs:
259262 id : ccache-info
260263 run : |
261264 echo "cache-dir=$(ccache --get-config cache_dir)" >> $GITHUB_OUTPUT
262- - name : Cache ccache
263- uses : actions/cache@v5
265+ - name : Restore ccache
266+ uses : apache/infrastructure- actions/stash/restore@0ba14156c9f4c3cfbe4b0c9f36339ab0f8d81e53
264267 with :
265268 path : ${{ steps.ccache-info.outputs.cache-dir }}
266- key : cpp-ccache-macos-${{ matrix.macos-version }}-${{ hashFiles('cpp/**') }}
267- restore-keys : cpp-ccache-macos-${{ matrix.macos-version }}-
269+ key : cpp-ccache-macos-${{ matrix.macos-version }}
268270 - name : Build
269271 run : |
270272 if [ "${{ matrix.macos-version }}" = "15-intel" ]; then
@@ -281,6 +283,13 @@ jobs:
281283 export BUILD_WARNING_LEVEL=PRODUCTION
282284 fi
283285 ci/scripts/cpp_build.sh $(pwd) $(pwd)/build
286+ - name : Save ccache
287+ if : ${{ !cancelled() }}
288+ continue-on-error : true
289+ uses : apache/infrastructure-actions/stash/save@0ba14156c9f4c3cfbe4b0c9f36339ab0f8d81e53
290+ with :
291+ path : ${{ steps.ccache-info.outputs.cache-dir }}
292+ key : cpp-ccache-macos-${{ matrix.macos-version }}
284293 - name : Test
285294 shell : bash
286295 run : |
@@ -366,17 +375,23 @@ jobs:
366375 - name : Setup MSYS2
367376 shell : msys2 {0}
368377 run : ci/scripts/msys2_setup.sh cpp
369- - name : Cache ccache
370- uses : actions/cache@v5
378+ - name : Restore ccache
379+ uses : apache/infrastructure- actions/stash/restore@0ba14156c9f4c3cfbe4b0c9f36339ab0f8d81e53
371380 with :
372381 path : ccache
373- key : cpp-ccache-${{ matrix.msystem_lower}}-${{ hashFiles('cpp/**') }}
374- restore-keys : cpp-ccache-${{ matrix.msystem_lower}}-
382+ key : cpp-ccache-${{ matrix.msystem_lower}}
375383 - name : Build
376384 shell : msys2 {0}
377385 run : |
378386 export CMAKE_BUILD_PARALLEL_LEVEL=$NUMBER_OF_PROCESSORS
379387 ci/scripts/cpp_build.sh "$(pwd)" "$(pwd)/build"
388+ - name : Save ccache
389+ if : ${{ !cancelled() }}
390+ continue-on-error : true
391+ uses : apache/infrastructure-actions/stash/save@0ba14156c9f4c3cfbe4b0c9f36339ab0f8d81e53
392+ with :
393+ path : ccache
394+ key : cpp-ccache-${{ matrix.msystem_lower}}
380395 - name : Download Timezone Database
381396 if : matrix.msystem_upper == 'CLANG64'
382397 shell : bash
@@ -386,12 +401,13 @@ jobs:
386401 # https://github.com/apache/arrow/issues/48593
387402 ci/scripts/download_tz_database.sh
388403 - name : Download MinIO
404+ # Match the version pinned in ci/scripts/install_minio.sh.
389405 shell : msys2 {0}
390406 run : |
391407 mkdir -p /usr/local/bin
392408 wget \
393409 --output-document /usr/local/bin/minio.exe \
394- https://dl.min.io/server/minio/release/windows-amd64/archive/minio.RELEASE.2024-09-13T20-26-02Z
410+ https://dl.min.io/server/minio/release/windows-amd64/archive/minio.RELEASE.2025-01-20T14-49-07Z
395411 chmod +x /usr/local/bin/minio.exe
396412 - name : Set up Python
397413 uses : actions/setup-python@v6
0 commit comments