@@ -45,18 +45,19 @@ concurrency:
4545 group : ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
4646 cancel-in-progress : true
4747
48+ permissions :
49+ contents : read
50+
4851env :
4952 ARROW_ENABLE_TIMING_TESTS : OFF
5053 DOCKER_VOLUME_PREFIX : " .docker/"
51- ARCHERY_DOCKER_USER : ${{ secrets.DOCKERHUB_USER }}
52- ARCHERY_DOCKER_PASSWORD : ${{ secrets.DOCKERHUB_TOKEN }}
5354
5455jobs :
5556 docker :
5657 name : ${{ matrix.title }}
5758 runs-on : ubuntu-latest
5859 if : ${{ !contains(github.event.pull_request.title, 'WIP') }}
59- timeout-minutes : 60
60+ timeout-minutes : 75
6061 strategy :
6162 fail-fast : false
6263 matrix :
7576 fetch-depth : 0
7677 submodules : recursive
7778 - name : Cache Docker Volumes
78- uses : actions/cache@v2
79+ uses : actions/cache@v3
7980 with :
8081 path : .docker
8182 key : ${{ matrix.image }}-${{ hashFiles('cpp/**') }}
@@ -87,12 +88,18 @@ jobs:
8788 - name : Setup Archery
8889 run : pip install -e dev/archery[docker]
8990 - name : Execute Docker Build
91+ env :
92+ ARCHERY_DOCKER_USER : ${{ secrets.DOCKERHUB_USER }}
93+ ARCHERY_DOCKER_PASSWORD : ${{ secrets.DOCKERHUB_TOKEN }}
9094 run : |
9195 sudo sysctl -w kernel.core_pattern="core.%e.%p"
9296 ulimit -c unlimited
9397 archery docker run ${{ matrix.image }}
9498 - name : Docker Push
9599 if : success() && github.event_name == 'push' && github.repository == 'apache/arrow'
100+ env :
101+ ARCHERY_DOCKER_USER : ${{ secrets.DOCKERHUB_USER }}
102+ ARCHERY_DOCKER_PASSWORD : ${{ secrets.DOCKERHUB_TOKEN }}
96103 continue-on-error : true
97104 run : archery docker push ${{ matrix.image }}
98105
@@ -101,8 +108,6 @@ jobs:
101108 runs-on : ubuntu-latest
102109 if : ${{ !contains(github.event.pull_request.title, 'WIP') }}
103110 timeout-minutes : 45
104- strategy :
105- fail-fast : false
106111 steps :
107112 - name : Checkout Arrow
108113 uses : actions/checkout@v3
@@ -122,9 +127,7 @@ jobs:
122127 name : AMD64 macOS 11 C++
123128 runs-on : macos-latest
124129 if : ${{ !contains(github.event.pull_request.title, 'WIP') }}
125- timeout-minutes : 60
126- strategy :
127- fail-fast : false
130+ timeout-minutes : 75
128131 env :
129132 ARROW_BUILD_TESTS : ON
130133 ARROW_DATASET : ON
@@ -146,8 +149,7 @@ jobs:
146149 ARROW_WITH_SNAPPY : ON
147150 ARROW_WITH_ZLIB : ON
148151 ARROW_WITH_ZSTD : ON
149- # System Abseil installed by Homebrew uses C++ 17
150- CMAKE_CXX_STANDARD : 17
152+ GTest_SOURCE : BUNDLED
151153 steps :
152154 - name : Checkout Arrow
153155 uses : actions/checkout@v3
@@ -174,13 +176,14 @@ jobs:
174176 run : |
175177 echo "::set-output name=cache-dir::$(ccache --get-config cache_dir)"
176178 - name : Cache ccache
177- uses : actions/cache@v2
179+ uses : actions/cache@v3
178180 with :
179181 path : ${{ steps.ccache-info.outputs.cache-dir }}
180182 key : cpp-ccache-macos-${{ hashFiles('cpp/**') }}
181183 restore-keys : cpp-ccache-macos-
182184 - name : Build
183- run : ci/scripts/cpp_build.sh $(pwd) $(pwd)/build
185+ run : |
186+ ci/scripts/cpp_build.sh $(pwd) $(pwd)/build
184187 - name : Test
185188 shell : bash
186189 run : |
@@ -257,7 +260,7 @@ jobs:
257260 - name : Install ccache
258261 shell : bash
259262 run : |
260- ci/scripts/install_ccache.sh 4.6.2 /usr
263+ ci/scripts/install_ccache.sh 4.6.3 /usr
261264 - name : Setup ccache
262265 shell : bash
263266 run : |
@@ -268,11 +271,14 @@ jobs:
268271 run : |
269272 echo "::set-output name=cache-dir::$(ccache --get-config cache_dir)"
270273 - name : Cache ccache
271- uses : actions/cache@v2
274+ uses : actions/cache@v3
272275 with :
273276 path : ${{ steps.ccache-info.outputs.cache-dir }}
274- key : cpp-ccache-windows-${{ hashFiles('cpp/**') }}
275- restore-keys : cpp-ccache-windows-
277+ key : cpp-ccache-windows-${{ env.CACHE_VERSION }}-${{ hashFiles('cpp/**') }}
278+ restore-keys : cpp-ccache-windows-${{ env.CACHE_VERSION }}-
279+ env :
280+ # We can invalidate the current cache by updating this.
281+ CACHE_VERSION : " 2022-09-13"
276282 - name : Build
277283 shell : cmd
278284 run : |
@@ -351,7 +357,7 @@ jobs:
351357 shell : msys2 {0}
352358 run : ci/scripts/msys2_setup.sh cpp
353359 - name : Cache ccache
354- uses : actions/cache@v2
360+ uses : actions/cache@v3
355361 with :
356362 path : ccache
357363 key : cpp-ccache-mingw${{ matrix.mingw-n-bits }}-${{ hashFiles('cpp/**') }}
@@ -372,23 +378,13 @@ jobs:
372378 --output-document /usr/local/bin/minio.exe \
373379 https://dl.min.io/server/minio/release/windows-amd64/archive/minio.RELEASE.2022-05-26T05-48-41Z
374380 chmod +x /usr/local/bin/minio.exe
375- - name : Cache Python wheels
376- uses : actions/cache@v2
377- with :
378- path : " ${{ env.PIP_CACHE_DIR }}"
379- key : cpp-wheels-mingw${{ matrix.mingw-n-bits }}-${{ hashFiles('ci/scripts/install_gcs_testbench.sh') }}
380- restore-keys : cpp-wheels-mingw${{ matrix.mingw-n-bits }}-
381381 - name : Install Google Cloud Storage Testbench
382- shell : msys2 {0}
382+ shell : bash
383383 run : |
384384 ci/scripts/install_gcs_testbench.sh default
385+ echo "PYTHON_BIN_DIR=$(cygpath --windows $(dirname $(which python3.exe)))" >> $GITHUB_ENV
385386 - name : Test
386387 shell : msys2 {0}
387388 run : |
388- python_version=$(python3 -c "import sys; print('.'.join(map(str, sys.version_info[0:2])))")
389- export PYTHONHOME="$(cygpath --windows ${MINGW_PREFIX})\lib\python${python_version}"
390- PYTHONPATH="${PYTHONHOME}"
391- PYTHONPATH="${PYTHONPATH};${PYTHONHOME}\lib-dynload"
392- PYTHONPATH="${PYTHONPATH};${PYTHONHOME}\site-packages"
393- export PYTHONPATH
389+ PATH="$(cygpath --unix ${PYTHON_BIN_DIR}):${PATH}"
394390 ci/scripts/cpp_test.sh "$(pwd)" "$(pwd)/build"
0 commit comments