Skip to content

Commit 47c5348

Browse files
committed
Add MacOS euphoria action
[macos-euphoria]
1 parent b13152b commit 47c5348

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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-13
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: 'Setup/Update Go'
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: '>=1.22.1'
22+
23+
- name: 'Get Euphoria'
24+
uses: actions/checkout@v4
25+
with:
26+
repository: amnezia-vpn/euphoria
27+
ref: master
28+
path: euphoria
29+
30+
- name: 'Run build script'
31+
working-directory: euphoria
32+
run: |
33+
brew install luajit
34+
make
35+
./amneziawg-go --version
36+
37+
- name: 'Archive artifacts'
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: euphoria-macos
41+
path: euphoria/amneziawg-go
42+
43+
github-release:
44+
name: GitHub Release
45+
needs: Build-Euphoria-MacOS
46+
runs-on: ubuntu-latest
47+
if: startsWith(github.ref, 'refs/tags/')
48+
49+
steps:
50+
- name: Setup | Checkout
51+
uses: actions/checkout@v4
52+
53+
- name: Setup | Artifacts
54+
uses: actions/download-artifact@v4
55+
56+
- name: Setup | Checksums
57+
run: for file in $(find ./ -name '*' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
58+
59+
- name: Zip ALL
60+
run: for file in *; do zip -r ${file%.*}.zip $file; done
61+
62+
- name: Upload binaries to release
63+
uses: svenstaro/upload-release-action@v2
64+
with:
65+
repo_token: ${{ secrets.GITHUB_TOKEN }}
66+
file: euphoria-macos.zip
67+
tag: ${{ github.ref }}
68+
overwrite: true
69+
file_glob: true

0 commit comments

Comments
 (0)