Skip to content

Commit d997c90

Browse files
committed
Add Linux euphoria action
[linux-euphoria]
1 parent 3564068 commit d997c90

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: linux-euphoria
2+
3+
on: [push]
4+
5+
jobs:
6+
7+
Build-Euphoria-Linux:
8+
name: 'Euphoria for Linux'
9+
runs-on: ubuntu-20.04
10+
if: |
11+
contains(github.event.head_commit.message, '[all]') ||
12+
contains(github.event.head_commit.message, '[linux]') ||
13+
contains(github.event.head_commit.message, '[linux-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+
apt install libluajit-5.1-dev
29+
make
30+
./amneziawg-go --version
31+
32+
- name: 'Archive artifacts'
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: euphoria-linux
36+
path: euphoria/amneziawg-go
37+
38+
github-release:
39+
name: GitHub Release
40+
needs: Build-Euphoria-Linux
41+
runs-on: ubuntu-latest
42+
if: startsWith(github.ref, 'refs/tags/')
43+
44+
steps:
45+
- name: Setup | Checkout
46+
uses: actions/checkout@v4
47+
48+
- name: Setup | Artifacts
49+
uses: actions/download-artifact@v4
50+
51+
- name: Setup | Checksums
52+
run: for file in $(find ./ -name '*' ); do openssl dgst -sha256 -r "$file" | awk '{print $1}' > "${file}.sha256"; done
53+
54+
- name: Zip ALL
55+
run: for file in *; do zip -r ${file%.*}.zip $file; done
56+
57+
- name: Upload binaries to release
58+
uses: svenstaro/upload-release-action@v2
59+
with:
60+
repo_token: ${{ secrets.GITHUB_TOKEN }}
61+
file: euphoria-linux.zip
62+
tag: ${{ github.ref }}
63+
overwrite: true
64+
file_glob: true

0 commit comments

Comments
 (0)