-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[awg]
- Loading branch information
Showing
5 changed files
with
168 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.