From cf2cdb5d15acae752aa4ef3b03df7ee82af7b8c2 Mon Sep 17 00:00:00 2001 From: albexk Date: Mon, 12 Feb 2024 22:02:42 +0300 Subject: [PATCH] Refactor Android AWG build script (#1) [android-awg] --- .github/workflows/build_awg_android.yml | 92 +++++++++-------------- .github/workflows/build_awg_ios.yml | 70 ++++++++--------- .github/workflows/build_awg_linux.yml | 84 ++++++++++----------- .github/workflows/build_awg_macos.yml | 86 +++++++++++---------- .github/workflows/build_awg_windows.yml | 57 +++++++------- .github/workflows/build_wg_android.yml | 99 ------------------------- .github/workflows/build_wg_ios.yml | 66 ----------------- .github/workflows/build_wg_windows.yml | 82 -------------------- 8 files changed, 181 insertions(+), 455 deletions(-) delete mode 100644 .github/workflows/build_wg_android.yml delete mode 100644 .github/workflows/build_wg_ios.yml delete mode 100644 .github/workflows/build_wg_windows.yml diff --git a/.github/workflows/build_awg_android.yml b/.github/workflows/build_awg_android.yml index 63bc6e5..1189f4b 100644 --- a/.github/workflows/build_awg_android.yml +++ b/.github/workflows/build_awg_android.yml @@ -1,7 +1,6 @@ name: android-awg on: [push] - jobs: @@ -15,59 +14,39 @@ jobs: contains(github.event.head_commit.message, '[awg]') steps: - + - name: 'Setup Java' - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '17' - - name: 'Setup Android' - run: | - export NDK_VERSION=23c - export ANDROID_NDK_PLATFORM=android-23 - export ANDROID_NDK_HOME=${{ runner.temp }}/android-ndk-r${NDK_VERSION} - export ANDROID_NDK_ROOT=$ANDROID_NDK_HOME - export ANDROID_CURRENT_ARCH=${{ matrix.arch }} - - if [ ! -f $ANDROID_NDK_ROOT/ndk-build ]; then - wget https://dl.google.com/android/repository/android-ndk-r${NDK_VERSION}-linux.zip -qO ${{ runner.temp }}/ndk.zip && - unzip -q -d ${{ runner.temp }} ${{ runner.temp }}/ndk.zip ; - fi - - - name: 'Install GO' - uses: actions/setup-go@v2 + - name: 'Setup Android NDK' + id: setup-ndk + uses: nttld/setup-ndk@v1 with: - go-version: 1.20.3 + ndk-version: 'r26b' - - name: 'Setup ccache' - uses: hendrikmuhs/ccache-action@v1.2 - - name: 'Get sources' - uses: actions/checkout@v3 - with: - submodules: 'true' - fetch-depth: 10 - - - name: 'Get Wireguard' - uses: actions/checkout@v3 + uses: actions/checkout@v4 + + - name: 'Get AmneziaWG' + uses: actions/checkout@v4 with: repository: amnezia-vpn/amneziawg-android ref: master - path: android/wireguard-android + path: android/amneziawg-android + submodules: true - - name: 'Build Wireguard binary' - working-directory: android/wireguard-android - run: | - git submodule update --init --recursive - echo "y" | /usr/local/lib/android/sdk/cmdline-tools/latest/bin/sdkmanager "build-tools;34.0.0-rc3" - ./gradlew assembleRelease + - name: 'Build AmneziaWG binary' + working-directory: android/amneziawg-android + run: ./gradlew :tunnel:stripReleaseDebugSymbols - - name: Archive artifacts - uses: actions/upload-artifact@v3 + - name: 'Archive artifacts' + uses: actions/upload-artifact@v4 with: - name: wg-android - path: android/wireguard-android/tunnel/build/intermediates/stripped_native_libs/release/out/lib/* + name: awg-android + path: android/amneziawg-android/tunnel/build/intermediates/stripped_native_libs/release/out/lib/* github-release: name: GitHub Release @@ -76,24 +55,23 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - - name: Setup | Checkout - uses: actions/checkout@v2 + - name: Setup | Checkout + uses: actions/checkout@v4 - - name: Setup | Artifacts - uses: actions/download-artifact@v2 + - name: Setup | Artifacts + uses: actions/download-artifact@v4 - - name: Setup | Checksums - run: for file in $(find ./ -name '*.so' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done + - name: Setup | Checksums + run: for file in $(find ./ -name '*.so' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done - - name: Zip ALL - run: for file in *; do zip -r ${file%.*}.zip $file; done - - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: awg-android.zip - tag: ${{ github.ref }} - overwrite: true - file_glob: true + - name: Zip ALL + run: for file in *; do zip -r ${file%.*}.zip $file; done + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: awg-android.zip + tag: ${{ github.ref }} + overwrite: true + file_glob: true diff --git a/.github/workflows/build_awg_ios.yml b/.github/workflows/build_awg_ios.yml index 1c28ba2..895afe2 100644 --- a/.github/workflows/build_awg_ios.yml +++ b/.github/workflows/build_awg_ios.yml @@ -3,7 +3,9 @@ name: awg-ios on: [push] jobs: + Build-WG-iOS: + name: 'AmneziaWG for iOS' runs-on: macos-12 if: | contains(github.event.head_commit.message, '[all]') || @@ -15,27 +17,27 @@ jobs: arch: [arm64] steps: - - name: Install dependencies - run: brew install swiftlint + - name: 'Install dependencies' + run: brew install swiftlint - - name: Get WireGuard - uses: actions/checkout@v3 - with: - repository: amnezia-vpn/amneziawg-apple - ref: master - path: awg-apple + - name: 'Get AmneziaWG' + uses: actions/checkout@v4 + with: + repository: amnezia-vpn/amneziawg-apple + ref: master + path: awg-apple - - name: Build WG - working-directory: awg-apple/Sources/WireGuardKitGo - run: ARCHS=${{ matrix.arch }} PLATFORM_NAME=iphoneos make + - name: 'Build WG' + working-directory: awg-apple/Sources/WireGuardKitGo + run: ARCHS=${{ matrix.arch }} PLATFORM_NAME=iphoneos make - - name: Upload Artifact - uses: actions/upload-artifact@v2.2.4 - with: - name: awg-ios-${{ matrix.arch }} - path: ${{ github.workspace }}/awg-apple/Sources/WireGuardKitGo/out - if-no-files-found: error - retention-days: 7 + - name: 'Archive artifacts' + uses: actions/upload-artifact@v4 + with: + name: awg-ios-${{ matrix.arch }} + path: ${{ github.workspace }}/awg-apple/Sources/WireGuardKitGo/out + if-no-files-found: error + retention-days: 7 github-release: name: GitHub Release @@ -44,23 +46,23 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - - name: Setup | Checkout - uses: actions/checkout@v2 + - name: Setup | Checkout + uses: actions/checkout@v4 - - name: Setup | Artifacts - uses: actions/download-artifact@v2 + - name: Setup | Artifacts + uses: actions/download-artifact@v4 - - name: Setup | Checksums - run: for file in $(find ./ -name '*.a' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done + - name: Setup | Checksums + run: for file in $(find ./ -name '*.a' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done - - name: Zip ALL - run: for file in *; do zip -r ${file%.*}.zip $file; done + - name: Zip ALL + run: for file in *; do zip -r ${file%.*}.zip $file; done - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: "*.zip" - tag: ${{ github.ref }} - overwrite: true - file_glob: true + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: "*.zip" + tag: ${{ github.ref }} + overwrite: true + file_glob: true diff --git a/.github/workflows/build_awg_linux.yml b/.github/workflows/build_awg_linux.yml index c33ddf6..ab4184f 100644 --- a/.github/workflows/build_awg_linux.yml +++ b/.github/workflows/build_awg_linux.yml @@ -1,39 +1,38 @@ name: linux-awg on: [push] - + jobs: Build-AWG-Linux: - + name: 'AmneziaWG for Linux' runs-on: ubuntu-20.04 if: | contains(github.event.head_commit.message, '[all]') || contains(github.event.head_commit.message, '[linux]') || contains(github.event.head_commit.message, '[linux-awg]') || contains(github.event.head_commit.message, '[awg]') - - name: "WireGuard for Linux" + steps: - - - name: 'Get Amnezia WireGuard' - uses: actions/checkout@v3 - with: - repository: amnezia-vpn/amneziawg-go - ref: master - path: amnezia-wg - - name: 'Run build script' - working-directory: amnezia-wg - run: | - make - ./wireguard-go --version - - - name: Archive artifacts - uses: actions/upload-artifact@v3 - with: - name: awg-linux - path: amnezia-wg/wireguard-go + - name: 'Get AmneziaWG' + uses: actions/checkout@v4 + with: + repository: amnezia-vpn/amneziawg-go + ref: master + path: amneziawg-go + + - name: 'Run build script' + working-directory: amneziawg-go + run: | + make + ./amneziawg-go --version + + - name: 'Archive artifacts' + uses: actions/upload-artifact@v4 + with: + name: awg-linux + path: amneziawg-go/amneziawg-go github-release: name: GitHub Release @@ -42,24 +41,23 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - - name: Setup | Checkout - uses: actions/checkout@v2 - - - name: Setup | Artifacts - uses: actions/download-artifact@v2 - - - name: Setup | Checksums - run: for file in $(find ./ -name '*' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done - - - name: Zip ALL - run: for file in *; do zip -r ${file%.*}.zip $file; done - - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: awg-linux.zip - tag: ${{ github.ref }} - overwrite: true - file_glob: true - + - name: Setup | Checkout + uses: actions/checkout@v4 + + - name: Setup | Artifacts + uses: actions/download-artifact@v4 + + - name: Setup | Checksums + run: for file in $(find ./ -name '*' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done + + - name: Zip ALL + run: for file in *; do zip -r ${file%.*}.zip $file; done + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: awg-linux.zip + tag: ${{ github.ref }} + overwrite: true + file_glob: true diff --git a/.github/workflows/build_awg_macos.yml b/.github/workflows/build_awg_macos.yml index 0a9ddea..8919226 100644 --- a/.github/workflows/build_awg_macos.yml +++ b/.github/workflows/build_awg_macos.yml @@ -1,65 +1,63 @@ name: macos-awg on: [push] - + jobs: Build-AWG-MacOS: - + name: 'AmneziaWG for MacOS' runs-on: macos-11 if: | contains(github.event.head_commit.message, '[all]') || contains(github.event.head_commit.message, '[macos]') || contains(github.event.head_commit.message, '[macos-awg]') || contains(github.event.head_commit.message, '[awg]') - - name: "WireGuard for MacOS" + steps: - - - name: 'Get WireGuard' - uses: actions/checkout@v3 - with: - repository: amnezia-vpn/amneziawg-go - ref: master - path: amnezia-wg - - name: 'Run build script' - working-directory: amnezia-wg - run: | - make - ./wireguard-go --version - - - name: Archive artifacts - uses: actions/upload-artifact@v3 - with: - name: awg-macos - path: amnezia-wg/wireguard-go + - name: 'Get AmneziaWG' + uses: actions/checkout@v4 + with: + repository: amnezia-vpn/amneziawg-go + ref: master + path: amneziawg-go + + - name: 'Run build script' + working-directory: amneziawg-go + run: | + make + ./amneziawg-go --version + + - name: 'Archive artifacts' + uses: actions/upload-artifact@v4 + with: + name: awg-macos + path: amneziawg-go/amneziawg-go github-release: name: GitHub Release - needs: Build-AWG-MacOS + needs: Build-AWG-MacOS runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') steps: - - name: Setup | Checkout - uses: actions/checkout@v2 - - - name: Setup | Artifacts - uses: actions/download-artifact@v2 - - - name: Setup | Checksums - run: for file in $(find ./ -name '*' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done - - - name: Zip ALL - run: for file in *; do zip -r ${file%.*}.zip $file; done - - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: awg-macos.zip - tag: ${{ github.ref }} - overwrite: true - file_glob: true - + - name: Setup | Checkout + uses: actions/checkout@v4 + + - name: Setup | Artifacts + uses: actions/download-artifact@v4 + + - name: Setup | Checksums + run: for file in $(find ./ -name '*' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done + + - name: Zip ALL + run: for file in *; do zip -r ${file%.*}.zip $file; done + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: awg-macos.zip + tag: ${{ github.ref }} + overwrite: true + file_glob: true diff --git a/.github/workflows/build_awg_windows.yml b/.github/workflows/build_awg_windows.yml index b5ab5f0..ce58848 100644 --- a/.github/workflows/build_awg_windows.yml +++ b/.github/workflows/build_awg_windows.yml @@ -1,9 +1,9 @@ name: windows-awg on: [push] - + jobs: - + Build-Libs-AWG-Windows: name: 'Build-Libs-AWG-Windows' runs-on: windows-latest @@ -14,12 +14,9 @@ jobs: contains(github.event.head_commit.message, '[awg]') steps: - - - name: 'Setup ccache' - uses: hendrikmuhs/ccache-action@v1.2 - - - name: 'Get Wireguard' - uses: actions/checkout@v3 + + - name: 'Get AmneziaWG' + uses: actions/checkout@v4 with: repository: amnezia-vpn/amneziawg-windows ref: master @@ -31,14 +28,14 @@ jobs: cmd /c build.cmd mkdir build move x64 build\x64 - - - name: Archive AWG Windows - uses: actions/upload-artifact@v3 + + - name: 'Archive artifacts' + uses: actions/upload-artifact@v4 with: - retention-days: 1 name: awg-windows - path: windows/wireguard-windows/build - + path: windows/wireguard-windows/build + retention-days: 1 + github-release: name: GitHub Release needs: Build-Libs-AWG-Windows @@ -46,23 +43,23 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - - name: Setup | Checkout - uses: actions/checkout@v2 + - name: Setup | Checkout + uses: actions/checkout@v4 - - name: Setup | Artifacts - uses: actions/download-artifact@v2 + - name: Setup | Artifacts + uses: actions/download-artifact@v4 - - name: Setup | Checksums - run: for file in $(find ./ -name '*.dll' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done + - name: Setup | Checksums + run: for file in $(find ./ -name '*.dll' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done - - name: Zip ALL - run: for file in *; do zip -r ${file%.*}.zip $file; done + - name: Zip ALL + run: for file in *; do zip -r ${file%.*}.zip $file; done - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: awg-windows.zip - tag: ${{ github.ref }} - overwrite: true - file_glob: true + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: awg-windows.zip + tag: ${{ github.ref }} + overwrite: true + file_glob: true diff --git a/.github/workflows/build_wg_android.yml b/.github/workflows/build_wg_android.yml deleted file mode 100644 index eca58bc..0000000 --- a/.github/workflows/build_wg_android.yml +++ /dev/null @@ -1,99 +0,0 @@ -name: android-wg - -on: [push] - - -jobs: - - Build-Libs-Wireguard-Android: - name: 'Build-Libs-Wireguard-Android' - runs-on: ubuntu-latest - if: | - contains(github.event.head_commit.message, '[all]') || - contains(github.event.head_commit.message, '[android]') || - contains(github.event.head_commit.message, '[android-wireguard]') || - contains(github.event.head_commit.message, '[wireguard]') - - steps: - - - name: 'Setup Java' - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: '17' - - - name: 'Setup Android' - run: | - export NDK_VERSION=23c - export ANDROID_NDK_PLATFORM=android-23 - export ANDROID_NDK_HOME=${{ runner.temp }}/android-ndk-r${NDK_VERSION} - export ANDROID_NDK_ROOT=$ANDROID_NDK_HOME - export ANDROID_CURRENT_ARCH=${{ matrix.arch }} - - if [ ! -f $ANDROID_NDK_ROOT/ndk-build ]; then - wget https://dl.google.com/android/repository/android-ndk-r${NDK_VERSION}-linux.zip -qO ${{ runner.temp }}/ndk.zip && - unzip -q -d ${{ runner.temp }} ${{ runner.temp }}/ndk.zip ; - fi - - - name: 'Install GO' - uses: actions/setup-go@v2 - with: - go-version: 1.20.3 - - - name: 'Setup ccache' - uses: hendrikmuhs/ccache-action@v1.2 - - - name: 'Get sources' - uses: actions/checkout@v3 - with: - submodules: 'true' - fetch-depth: 10 - - - name: 'Get Wireguard' - uses: actions/checkout@v3 - with: - repository: WireGuard/wireguard-android - ref: master - path: android/wireguard-android - - - name: 'Build Wireguard binary' - working-directory: android/wireguard-android - run: | - git submodule update --init --recursive - echo "y" | /usr/local/lib/android/sdk/cmdline-tools/latest/bin/sdkmanager "build-tools;34.0.0-rc3" - ./gradlew assembleRelease - - - name: Archive artifacts - uses: actions/upload-artifact@v3 - with: - name: wg-android - path: android/wireguard-android/tunnel/build/intermediates/stripped_native_libs/release/out/lib/* - - github-release: - name: GitHub Release - needs: Build-Libs-Wireguard-Android - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - - steps: - - name: Setup | Checkout - uses: actions/checkout@v2 - - - name: Setup | Artifacts - uses: actions/download-artifact@v2 - - - name: Setup | Checksums - run: for file in $(find ./ -name '*.so' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done - - - name: Zip ALL - run: for file in *; do zip -r ${file%.*}.zip $file; done - - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: wg-android.zip - tag: ${{ github.ref }} - overwrite: true - file_glob: true - diff --git a/.github/workflows/build_wg_ios.yml b/.github/workflows/build_wg_ios.yml deleted file mode 100644 index 8d999c0..0000000 --- a/.github/workflows/build_wg_ios.yml +++ /dev/null @@ -1,66 +0,0 @@ -name: wg-ios - -on: [push] - -jobs: - Build-WG-iOS: - runs-on: macos-12 - if: | - contains(github.event.head_commit.message, '[all]') || - contains(github.event.head_commit.message, '[ios]') || - contains(github.event.head_commit.message, '[ios-wg]') || - contains(github.event.head_commit.message, '[wg]') - strategy: - matrix: - arch: [arm64] - - steps: - - name: Install dependencies - run: brew install swiftlint go - - - name: Get WireGuard - uses: actions/checkout@v3 - with: - repository: WireGuard/wireguard-apple - ref: 23618f994f17d8ad8f2f65d79b4a1e8a0830b334 - path: wireguard - - - name: Build WG - working-directory: wireguard/Sources/WireGuardKitGo - run: ARCHS=${{ matrix.arch }} PLATFORM_NAME=iphoneos make - - - name: Upload Artifact - uses: actions/upload-artifact@v2.2.4 - with: - name: wg-ios-${{ matrix.arch }} - path: ${{ github.workspace }}/wireguard/Sources/WireGuardKitGo/out - if-no-files-found: error - retention-days: 7 - - github-release: - name: GitHub Release - needs: Build-WG-iOS - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - - steps: - - name: Setup | Checkout - uses: actions/checkout@v2 - - - name: Setup | Artifacts - uses: actions/download-artifact@v2 - - - name: Setup | Checksums - run: for file in $(find ./ -name '*.a' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done - - - name: Zip ALL - run: for file in *; do zip -r ${file%.*}.zip $file; done - - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: "*.zip" - tag: ${{ github.ref }} - overwrite: true - file_glob: true diff --git a/.github/workflows/build_wg_windows.yml b/.github/workflows/build_wg_windows.yml deleted file mode 100644 index ad8a055..0000000 --- a/.github/workflows/build_wg_windows.yml +++ /dev/null @@ -1,82 +0,0 @@ -name: windows-wg - -on: [push] - - -jobs: - - Build-Libs-WireGuard-Windows: - name: 'Build-Libs-WireGuard-Windows' - runs-on: windows-latest - if: | - contains(github.event.head_commit.message, '[all]') || - contains(github.event.head_commit.message, '[windows]') || - contains(github.event.head_commit.message, '[windows-wireguard]') || - contains(github.event.head_commit.message, '[wireguard]') - - steps: - - - name: 'Setup ccache' - uses: hendrikmuhs/ccache-action@v1.2 - - - name: 'Get sources' - uses: actions/checkout@v3 - with: - submodules: 'true' - fetch-depth: 10 - - - name: 'Get Wireguard' - uses: actions/checkout@v3 - with: - repository: WireGuard/wireguard-windows - ref: master - path: windows/wireguard-windows - - - name: 'Build WireGuard binary' - working-directory: windows/wireguard-windows - run: | - cmd /c build.bat - cmd /c embeddable-dll-service\build.bat - mkdir build - move embeddable-dll-service\amd64 build\amd64 - move embeddable-dll-service\arm64 build\arm64 - move embeddable-dll-service\x86 build\x86 - move .deps\wireguard-nt\bin\amd64\wireguard.dll build\amd64 - move .deps\wireguard-nt\bin\arm64\wireguard.dll build\arm64 - move .deps\wireguard-nt\bin\x86\wireguard.dll build\x86 - - - name: Archive WG Windows - uses: actions/upload-artifact@v3 - with: - retention-days: 1 - name: windows-wireguard - path: windows/wireguard-windows/build - - github-release: - name: GitHub Release - needs: Build-Libs-WireGuard-Windows - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - - steps: - - name: Setup | Checkout - uses: actions/checkout@v2 - - - name: Setup | Artifacts - uses: actions/download-artifact@v2 - - - name: Setup | Checksums - run: for file in $(find ./ -name '*.dll' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done - - - name: Zip ALL - run: for file in *; do zip -r ${file%.*}.zip $file; done - - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: windows-wireguard.zip - tag: ${{ github.ref }} - overwrite: true - file_glob: true -