From c5579174fcbdd10aa6fb33f7da5382b0640de11d Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Mon, 17 Jun 2024 23:45:59 -0400 Subject: [PATCH] Update build-windows.yml --- .github/workflows/build-windows.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 7b4d3fe..09a6a41 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -19,7 +19,7 @@ jobs: with: go-version: '>=1.22' check-latest: true - cache-dependency-path: "**/go.sum" + cache: false - name: Install dependencies run: | @@ -34,16 +34,18 @@ jobs: CGO_ENABLED: 1 # - name: Add icon and manifest + # shell: pwsh # run: | # Invoke-WebRequest https://www.angusj.com/resourcehacker/reshacker_setup.exe # reshacker_setup.exe /SILENT # rh - # - name: Compress with upx - # run: | - # Invoke-WebRequest https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-win64.zip - # Expand-Archive upx-4.2.4-win64.zip -DestinationPath upx - # upx/upx-4.2.4-win64/upx.exe --lzma --brute src/Picocrypt.exe + - name: Compress with upx + shell: pwsh + run: | + Invoke-WebRequest https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-win64.zip -OutFile upx.zip + Expand-Archive upx.zip -DestinationPath upx + upx/upx-4.2.4-win64/upx.exe --lzma --brute src/Picocrypt.exe - name: Upload artifact uses: actions/upload-artifact@v4