From 4f893b686571adf6f575dcbbb5f5b4519d80fa9d Mon Sep 17 00:00:00 2001 From: Kasper Peeters Date: Sat, 28 Sep 2024 19:39:46 +0100 Subject: [PATCH] Fix path of installer for upload. --- .github/workflows/windows.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index ed22fa3436..9100b7b0f2 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -50,12 +50,10 @@ jobs: - name: Build run: | - echo ${PATH} - export PATH=$(echo $PATH | sed -e 's|/opt/hostedtoolcache/python/3\.[^:]*:||g') - python --version - which python mkdir build cd build + # Turn off searching Python in the registry, as that contains the + # windows Python which is not the MSYS python that we want to use. cmake -DPython_FIND_REGISTRY=NEVER .. ninja ninja install @@ -68,7 +66,7 @@ jobs: - name: Upload release assets run: | - gh release upload "${{ env.VERSION }}" cadabra2-${{ env.VERSION }}-win64.exe --clobber + gh release upload "${{ env.VERSION }}" build/cadabra2-${{ env.VERSION }}-win64.exe --clobber env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}