use choco to download wget

This commit is contained in:
n4n5 2024-12-30 10:33:06 +01:00 committed by GitHub
parent 93d147382d
commit 14b9b07652
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 8 deletions

View file

@ -12,10 +12,6 @@ jobs:
- name: Checkout Actions Repository
uses: actions/checkout@v4
- name: Install wget for Windows
if: matrix.os == 'windows-latest'
run: choco install wget --no-progress
- name: Prepare file with mistakes.
run: echo "Finallizes" > file.txt
- name: Test force pass with mistakes
@ -43,10 +39,6 @@ jobs:
with:
fetch-depth: 0
- name: Install wget for Windows
if: matrix.os == 'windows-latest'
run: choco install wget --no-progress
- name: Prepare file with mistakes.
run: echo "Finallizes" > file.txt
- name: Test force pass with mistakes

View file

@ -34,6 +34,9 @@ if [[ ! -x ${COMMAND} ]]; then
elif [[ "$UNAME" == CYGWIN* || "$UNAME" == MINGW* || "$UNAME" == MSYS* ]] ; then
TARGET_FILE="${ARCH}-pc-windows-msvc"
FILE_EXT="zip"
if [[ ! -x $(command -v wget) ]] && [[ -x $(command -v choco) ]]; then
choco install wget --no-progress
fi
else
TARGET_FILE="${ARCH}-unknown-linux-musl"
FILE_EXT="tar.gz"