# HG changeset patch # User Paper <37962225+mrpapersonic@users.noreply.github.com> # Date 1658382579 14400 # Node ID 495a0733b2c036890c96fb04f31ad662a0572a3b # Parent 61fa41e1678f7e58308a7e1bad24e3ff32623492 Check if MinGW directory exists before unzipping diff -r 61fa41e1678f -r 495a0733b2c0 .github/workflows/build.yml --- a/.github/workflows/build.yml Thu Jul 21 01:22:47 2022 -0400 +++ b/.github/workflows/build.yml Thu Jul 21 01:49:39 2022 -0400 @@ -17,10 +17,12 @@ - name: Setup MinGW run: | - Invoke-WebRequest -OutFile mingw-get.zip "https://osdn.net/dl/mingw/mingw-get-0.6.3-mingw32-pre-20170905-1-bin.zip" -UserAgent "curl/7.55.1" - Expand-Archive -Path mingw-get.zip -DestinationPath C:\MinGW - Remove-Item -Path mingw-get.zip - C:\MinGW\bin\mingw-get.exe install mingw32-base-bin + if (!(Test-Path "C:\MinGW")) { + Invoke-WebRequest -OutFile mingw-get.zip "https://osdn.net/dl/mingw/mingw-get-0.6.3-mingw32-pre-20170905-1-bin.zip" -UserAgent "curl/7.55.1" + Expand-Archive -Path mingw-get.zip -DestinationPath C:\MinGW + Remove-Item -Path mingw-get.zip + C:\MinGW\bin\mingw-get.exe install mingw32-base-bin + } shell: pwsh - uses: actions/checkout@v2