Skip to content

Commit 98a6693

Browse files
committed
Add MacOS euphoria action
[macos-euphoria]
1 parent b13152b commit 98a6693

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: macos-euphoria
2+
3+
on: [push]
4+
5+
jobs:
6+
7+
Build-Euphoria-MacOS:
8+
name: 'Euphoria for MacOS'
9+
runs-on: macos-12
10+
if: |
11+
contains(github.event.head_commit.message, '[all]') ||
12+
contains(github.event.head_commit.message, '[macos]') ||
13+
contains(github.event.head_commit.message, '[macos-euphoria]') ||
14+
contains(github.event.head_commit.message, '[euphoria]')
15+
16+
steps:
17+
18+
- name: 'Get Euphoria'
19+
uses: actions/checkout@v4
20+
with:
21+
repository: amnezia-vpn/euphoria
22+
ref: master
23+
path: euphoria
24+
25+
- name: 'Run build script'
26+
working-directory: euphoria
27+
run: |
28+
make
29+
./amneziawg-go --version
30+
31+
- name: 'Archive artifacts'
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: euphoria-macos
35+
path: euphoria/amneziawg-go
36+
37+
github-release:
38+
name: GitHub Release
39+
needs: Build-Euphoria-MacOS
40+
runs-on: ubuntu-latest
41+
if: startsWith(github.ref, 'refs/tags/')
42+
43+
steps:
44+
- name: Setup | Checkout
45+
uses: actions/checkout@v4
46+
47+
- name: Setup | Artifacts
48+
uses: actions/download-artifact@v4
49+
50+
- name: Setup | Checksums
51+
run: for file in $(find ./ -name '*' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
52+
53+
- name: Zip ALL
54+
run: for file in *; do zip -r ${file%.*}.zip $file; done
55+
56+
- name: Upload binaries to release
57+
uses: svenstaro/upload-release-action@v2
58+
with:
59+
repo_token: ${{ secrets.GITHUB_TOKEN }}
60+
file: euphoria-macos.zip
61+
tag: ${{ github.ref }}
62+
overwrite: true
63+
file_glob: true

0 commit comments

Comments
 (0)