From 8532b9cf7cfaf5054a4d336caa3afe2b12b6e627 Mon Sep 17 00:00:00 2001 From: Mark Pashmfouroush Date: Tue, 28 May 2024 09:56:28 +0100 Subject: [PATCH] actions: redistribute wintun.dll Signed-off-by: Mark Pashmfouroush --- .github/workflows/go-build.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/go-build.yaml b/.github/workflows/go-build.yaml index 25bec9161..3eebf67ec 100644 --- a/.github/workflows/go-build.yaml +++ b/.github/workflows/go-build.yaml @@ -80,6 +80,19 @@ jobs: cp ${GITHUB_WORKSPACE}/README.md ./warp-plus_${{ env.ASSET_NAME }}/README.md cp ${GITHUB_WORKSPACE}/LICENSE ./warp-plus_${{ env.ASSET_NAME }}/LICENSE + - name: Redistribute wintun.dll + if: ${{ matrix.goos }} == 'windows' + run: | + curl -L https://www.wintun.net/builds/wintun-0.14.1.zip -o wintun.zip + unzip wintun.zip -d wintun + if [ "$GOARCH" = "amd64" ]; then + mv wintun/bin/amd64/wintun.dll ./warp-plus_${{ env.ASSET_NAME }}/ + elif [ "$GOARCH" = "arm64" ]; then + mv wintun/bin/arm64/wintun.dll ./warp-plus_${{ env.ASSET_NAME }}/ + elif [ "$GOARCH" = "386" ]; then + mv wintun/bin/x86/wintun.dll ./warp-plus_${{ env.ASSET_NAME }}/ + fi + - name: Create ZIP archive shell: bash run: |