From 129aad5667b49c6fce4c35405b3cc1357afb40af Mon Sep 17 00:00:00 2001 From: Ankith Date: Sat, 7 Oct 2023 21:36:19 +0530 Subject: [PATCH] pass 17 --- .github/workflows/build-windows.yml | 20 +++++++++---------- buildconfig/windependencies/build_win_deps.sh | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 1ba647942e..2c0af357f6 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -55,6 +55,16 @@ jobs: } steps: + - name: Test for Win Deps cache hit + id: windep-cache + uses: actions/cache@v3.3.2 + with: + path: ${{ github.workspace }}/pygame_win_deps_${{ matrix.winarch }} + # The hash of all files in buildconfig manylinux-build and windependencies is + # the key to the cache. If anything changes here, the deps are built again + key: windep-${{ hashFiles('buildconfig/manylinux-build/**') }}-${{ hashFiles('buildconfig/windependencies/*.sh') }}-${{ matrix.winarch }} + lookup-only: true + - run: git config --global core.autocrlf input # do not introduce carriage returns - uses: actions/checkout@v4.1.0 - uses: msys2/setup-msys2@v2 @@ -66,16 +76,6 @@ jobs: mingw-w64-${{ matrix.winarch }}-autotools mingw-w64-${{ matrix.winarch }}-nasm - - name: Test for Win Deps cache hit - id: windep-cache - uses: actions/cache@v3.3.2 - with: - path: ${{ github.workspace }}/pygame_win_deps_${{ matrix.winarch }} - # The hash of all files in buildconfig manylinux-build and windependencies is - # the key to the cache. If anything changes here, the deps are built again - key: windep-${{ hashFiles('buildconfig/manylinux-build/**') }}-${{ hashFiles('buildconfig/windependencies/*.sh') }}-${{ matrix.winarch }} - lookup-only: true - # build win deps on cache miss - name: Build Win Deps if: steps.windep-cache.outputs.cache-hit != 'true' diff --git a/buildconfig/windependencies/build_win_deps.sh b/buildconfig/windependencies/build_win_deps.sh index 481132f9dd..bd956eac9c 100644 --- a/buildconfig/windependencies/build_win_deps.sh +++ b/buildconfig/windependencies/build_win_deps.sh @@ -5,7 +5,7 @@ set -e -x # The below three lines convert something like D:\path\goes\here to /d/path/goes/here export BASE_DIR=$(echo "$GITHUB_WORKSPACE" | tr '[:upper:]' '[:lower:]') export BASE_DIR="${BASE_DIR//\\//}" # //\\// replaces all \ with / in the variable -export BASE_DIR="${BASE_DIR//:/}" # remove colon from drive part +export BASE_DIR="/${BASE_DIR//:/}" # remove colon from drive part, add leading / export WIN_PREFIX_PATH="$BASE_DIR/pygame_win_deps_$WIN_ARCH"