Skip to content

Commit 357c020

Browse files
committed
Euphoria for Windows action
[windows-euphoria]
1 parent e322638 commit 357c020

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: windows-euphoria
2+
3+
on: [push]
4+
5+
jobs:
6+
Build-Libs-Euphoria-Windows:
7+
name: 'Build-Libs-Euphoria-Windows'
8+
runs-on: windows-latest
9+
if: |
10+
contains(github.event.head_commit.message, '[all]') ||
11+
contains(github.event.head_commit.message, '[windows]') ||
12+
contains(github.event.head_commit.message, '[windows-euphoria]') ||
13+
contains(github.event.head_commit.message, '[euphoria]')
14+
15+
steps:
16+
- name: 'Get AmneziaWG'
17+
uses: actions/checkout@v4
18+
with:
19+
repository: amnezia-vpn/euphoria-windows
20+
ref: master
21+
path: windows/euphoria-windows
22+
23+
- name: 'Build WireGuard binary'
24+
working-directory: windows/euphoria-windows
25+
run: |
26+
cmd /c build.cmd
27+
mkdir build
28+
move x64 build\x64
29+
move x86 build\x86
30+
31+
- name: 'Archive artifacts'
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: euphoria-windows
35+
path: windows/euphoria-windows/build
36+
retention-days: 1
37+
38+
github-release:
39+
name: GitHub Release
40+
needs: Build-Libs-Euphoria-Windows
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 '*.dll' ); 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-windows.zip
62+
tag: ${{ github.ref }}
63+
overwrite: true
64+
file_glob: true

0 commit comments

Comments
 (0)