From f083a2bb18accc0decc5042cee62b4307c96c03b Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 13 Dec 2020 21:56:28 +0100 Subject: Update build_cmake.yml --- .github/workflows/build_cmake.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 0839039..a7ae96f 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -61,12 +61,25 @@ jobs: steps: - uses: actions/checkout@v1 - - uses: suisei-cn/actions-download-file@v1 - with: - url: "https://miktex.org/download/win/miktexsetup-x64.zip" - target: . +# - uses: suisei-cn/actions-download-file@v1 +# with: +# url: "https://miktex.org/download/win/miktexsetup-x64.zip" +# target: . +# if: matrix.config.os == 'windows-latest' + + - name: Download MikTex (Windows) + shell: ps1 + run: + $wc = New-Object System.Net.WebClient + $maxAttempts=5 + $attemptCount=0 + Do { + $attemptCount++ + echo "downloading: attempt $attemptCount" + $wc.DownloadFile("https://miktex.org/download/win/miktexsetup-x64.zip","miktexsetup-x64.zip") + } while (((Test-Path "miktexsetup-x64.zip") -eq $false) -and ($attemptCount -le $maxAttempts)) if: matrix.config.os == 'windows-latest' - + - uses: suisei-cn/actions-download-file@v1 with: url: "https://github.com/pffang/libiconv-for-Windows/releases/download/v1.16/libiconv-for-Windows_1.16.7z" -- cgit v0.12