Skip to content

Commit

Permalink
ARROW-16995: [CI][C++][MinGW] Don't cache site-packages (#13534)
Browse files Browse the repository at this point in the history
It may revert updated Python related MSYS2 packages such as
python-numpy. This caches built wheels instead.

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
kou authored Jul 8, 2022
1 parent 9c93f82 commit 922f58f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -351,20 +351,20 @@ jobs:
--output-document /usr/local/bin/minio.exe \
https://dl.min.io/server/minio/release/windows-amd64/archive/minio.RELEASE.2022-05-26T05-48-41Z
chmod +x /usr/local/bin/minio.exe
- name: Cache Python packages
- name: Cache Python wheels
uses: actions/cache@v2
with:
path: "d:/a/_temp/msys64/mingw${{ matrix.mingw-n-bits }}/lib/python*/site-packages"
key: cpp-gcs-testbench-mingw${{ matrix.mingw-n-bits }}-${{ hashFiles('ci/scripts/install_gcs_testbench.sh') }}
restore-keys: cpp-gcs-testbench-mingw${{ matrix.mingw-n-bits }}-
path: "${{ env.PIP_CACHE_DIR }}"
key: cpp-wheels-mingw${{ matrix.mingw-n-bits }}-${{ hashFiles('ci/scripts/install_gcs_testbench.sh') }}
restore-keys: cpp-wheels-mingw${{ matrix.mingw-n-bits }}-
- name: Install Google Cloud Storage Testbench
shell: msys2 {0}
run: |
ci/scripts/install_gcs_testbench.sh default
- name: Test
shell: msys2 {0}
run: |
python_version=$(python -c "import sys; print('.'.join(map(str, sys.version_info[0:2])))")
python_version=$(python3 -c "import sys; print('.'.join(map(str, sys.version_info[0:2])))")
export PYTHONHOME="$(cygpath --windows ${MINGW_PREFIX})\lib\python${python_version}"
PYTHONPATH="${PYTHONHOME}"
PYTHONPATH="${PYTHONPATH};${PYTHONHOME}\lib-dynload"
Expand Down
1 change: 1 addition & 0 deletions ci/scripts/msys2_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ pacman \

"$(dirname $0)/ccache_setup.sh"
echo "CCACHE_DIR=$(cygpath --absolute --windows ccache)" >> $GITHUB_ENV
echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV

0 comments on commit 922f58f

Please sign in to comment.