mirror of
https://github.com/amnezia-vpn/amneziawg-tools.git
synced 2025-06-05 04:23:43 +02:00
Merge pull request #2 from amnezia-vpn/marko1777-patch-1
Create windows-build.yml
This commit is contained in:
commit
a3c7c20be7
1 changed files with 73 additions and 0 deletions
73
.github/workflows/windows-build.yml
vendored
Normal file
73
.github/workflows/windows-build.yml
vendored
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
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, '[wireguard-tools]')
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: 'Setup ccache'
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
|
||||||
|
- name: 'Get sources'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: 'Get Wireguard-Tools'
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: amnezia-vpn/amnezia-wg-tools
|
||||||
|
ref: new_fields_to_config
|
||||||
|
path: windows/wireguard-tools-windows
|
||||||
|
|
||||||
|
- name: 'Build WireGuard Tools binary'
|
||||||
|
working-directory: windows/wireguard-tools-windows
|
||||||
|
run: |
|
||||||
|
cmd /c build.bat
|
||||||
|
mkdir build
|
||||||
|
move x64 build\x64
|
||||||
|
move x86 build\x86
|
||||||
|
move arm64 build\arm64
|
||||||
|
|
||||||
|
- name: Archive WG Windows
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
retention-days: 1
|
||||||
|
name: windows-wireguard-tools
|
||||||
|
path: windows/wireguard-tools-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-tools.zip
|
||||||
|
tag: ${{ github.ref }}
|
||||||
|
overwrite: true
|
||||||
|
file_glob: true
|
Loading…
Add table
Reference in a new issue