From db66e1283a5bf29710a1d6fb4711337aedec949e Mon Sep 17 00:00:00 2001 From: mattip Date: Tue, 12 Apr 2022 01:31:04 +0300 Subject: msys2 makes it hard to add to the path, work around it --- .github/workflows/msys2.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/msys2.yml b/.github/workflows/msys2.yml index ee930f6..b49cd70 100644 --- a/.github/workflows/msys2.yml +++ b/.github/workflows/msys2.yml @@ -87,16 +87,22 @@ jobs: run: | mkdir pypy3local pushd pypy3local - wget https://downloads.python.org/pypy/pypy3.8-v7.3.9-win64.zip + wget -nv https://downloads.python.org/pypy/pypy3.8-v7.3.9-win64.zip unzip pypy3.8-v7.3.9-win64.zip mv pypy3.8-v7.3.9-win64/* ./ popd - echo $PWD\pypy3local | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - pypy3 -m ensurepip if: ${{ matrix.MSYS2_ARCH == 'x86_64' }} - name: Run Tests run: | + if [[ "${{ matrix.MSYS2_ARCH }}" == "x86_64" ]]; then + # There apparently is no clean way to add to the PATH in the + # previous step? + # See for instance https://github.com/msys2/setup-msys2/issues/171 + export PATH=$PATH:$PWD/pypy3local + # Make sure it is on the PATH + pypy3 -c "import sys; print(sys.version)" + fi export BOOST_ROOT= export PATHEXT="$PATHEXT;.py" -- cgit v1.1