Skip to content

Commit

Permalink
Build AWG for Desktop
Browse files Browse the repository at this point in the history
[wireguard]
  • Loading branch information
outspace committed Sep 20, 2023
1 parent 256690e commit 4b9afe3
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 13 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/build_awg_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: linux-awg

on: [push]

jobs:

Build-AWG-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, '[wireguard]')
name: "WireGuard for MacOS"
steps:

- name: 'Get Amnezia WireGuard'
uses: actions/checkout@v3
with:
repository: amnezia-vpn/amnezia-wg
ref: advanced-security
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

github-release:
name: GitHub Release
needs: Build-AWG-Linux
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-linux.zip
tag: ${{ github.ref }}
overwrite: true
file_glob: true

Original file line number Diff line number Diff line change
@@ -1,41 +1,43 @@
name: macos-wg
name: macos-awg

on: [push]

jobs:

macos:
Build-AWG-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-wg]') ||
contains(github.event.head_commit.message, '[wg]')
contains(github.event.head_commit.message, '[macos-awg]') ||
contains(github.event.head_commit.message, '[wireguard]')
name: "WireGuard for MacOS"
steps:

- name: 'Get WireGuard'
uses: actions/checkout@v3
with:
repository: WireGuard/wireguard-go
ref: master
path: wireguard-go
repository: amnezia-vpn/amnezia-wg
ref: advanced-security
path: amnezia-wg

- name: 'Run build script'
working-directory: wireguard-go
run: make
working-directory: amnezia-wg
run: |
make
./wireguard-go --version
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: wg-macos
path: wireguard-go/wireguard-go
name: awg-macos
path: amnezia-wg/wireguard-go

github-release:
name: GitHub Release
needs: macos
needs: Build-AWG-MacOS
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')

Expand All @@ -56,7 +58,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: wg-macos.zip
file: awg-macos.zip
tag: ${{ github.ref }}
overwrite: true
file_glob: true
Expand Down
File renamed without changes.

0 comments on commit 4b9afe3

Please sign in to comment.