From e2b0b1b1fb8272bf92e2e4ce2b3db3851fc44762 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 5 Sep 2023 18:29:59 +0200 Subject: [PATCH] CI: Use latest MSVC dependencies download URL --- .github/workflows/build.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7086c892a..1312c69d0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1208,24 +1208,16 @@ jobs: echo "prefix_path_forwardslash=c:/strawberry_msvc_${{matrix.arch}}_${{matrix.build_type}}" >> $GITHUB_ENV echo "prefix_path_unix=/c/strawberry_msvc_${{matrix.arch}}_${{matrix.build_type}}" >> $GITHUB_ENV - - name: Get the latest MSVC dependencies - shell: bash - run: | - msvc_deps_version=$(curl -s 'https://github.com/strawberrymusicplayer/strawberry-msvc-dependencies/releases' | sed -n 's,.*releases/tag/\([^"&;]*\)".*,\1,p' | head -1) - echo "msvc_deps_version=${msvc_deps_version}" >> $GITHUB_ENV - - name: Download Windows MSVC dependencies uses: suisei-cn/actions-download-file@v1 with: - url: "Windows MSVC dependencies [this](https://github.com/strawberrymusicplayer/strawberry-msvc-dependencies/releases/download/${{env.msvc_deps_version}}/strawberry-msvc-${{matrix.arch}}-${{matrix.build_type}}.tar.xz)!" + url: "Windows MSVC dependencies [this](https://github.com/strawberrymusicplayer/strawberry-msvc-dependencies/releases/latest/download/strawberry-msvc-${{matrix.arch}}-${{matrix.build_type}}.tar.xz)!" target: downloads/ auto-match: true - name: Extract Windows MSVC dependencies shell: bash - run: | - tar -xf /d/a/strawberry/strawberry/downloads/strawberry-msvc-${{matrix.arch}}-${{matrix.build_type}}.tar.xz - mv strawberry_msvc_${{matrix.arch}}_${{matrix.build_type}} /c/ + run: tar -C /c -xf /d/a/strawberry/strawberry/downloads/strawberry-msvc-${{matrix.arch}}-${{matrix.build_type}}.tar.xz - name: Update PATH run: echo "${{env.prefix_path_backslash}}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append