Skip to content

Commit 705afac

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

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: 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: Set up build environment
26+
uses: awalsh128/cache-apt-pkgs-action@latest
27+
with:
28+
packages: gcc-multilib g++-multilib libluajit-5.1-dev
29+
version: 1.0
30+
31+
- name: 'Run build script'
32+
working-directory: euphoria
33+
run: |
34+
make
35+
./amneziawg-go --version
36+
37+
- name: 'Archive artifacts'
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: euphoria-linux
41+
path: euphoria/amneziawg-go
42+
43+
github-release:
44+
name: GitHub Release
45+
needs: Build-Euphoria-Linux
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-linux.zip
67+
tag: ${{ github.ref }}
68+
overwrite: true
69+
file_glob: true

0 commit comments

Comments
 (0)