Skip to content

Commit 0c38ebb

Browse files
committed
Added Avalonia UI Windows version compilation script
1 parent 75df85f commit 0c38ebb

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: release Windows desktop (Avalonia UI)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_tag:
7+
required: false
8+
type: string
9+
push:
10+
branches:
11+
- master
12+
13+
env:
14+
OutputArch: "windows-64"
15+
OutputArchArm: "windows-arm64"
16+
OutputPath64: "${{ github.workspace }}/v2rayN/Release/windows-64"
17+
OutputPathArm64: "${{ github.workspace }}/v2rayN/Release/windows-arm64"
18+
19+
jobs:
20+
build:
21+
strategy:
22+
matrix:
23+
configuration: [Release]
24+
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- name: Checkout
29+
uses: actions/[email protected]
30+
31+
- name: Setup
32+
uses: actions/[email protected]
33+
with:
34+
dotnet-version: '8.0.x'
35+
36+
- name: Build
37+
run: |
38+
cd v2rayN
39+
dotnet publish ./v2rayN.Desktop/v2rayN.Desktop.csproj -c Release -r win-x64 --self-contained=true -p:PublishReadyToRun=false -p:PublishSingleFile=true -p:EnableWindowsTargeting=true -o $OutputPath64
40+
dotnet publish ./v2rayN.Desktop/v2rayN.Desktop.csproj -c Release -r win-arm64 --self-contained=true -p:PublishReadyToRun=false -p:PublishSingleFile=true -p:EnableWindowsTargeting=true -o $OutputPathArm64
41+
dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-x64 --self-contained=true -p:PublishReadyToRun=false -p:PublishSingleFile=true -p:PublishTrimmed=true -p:EnableWindowsTargeting=true -o $OutputPath64
42+
dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-arm64 --self-contained=true -p:PublishReadyToRun=false -p:PublishSingleFile=true -p:PublishTrimmed=true -p:EnableWindowsTargeting=true -o $OutputPathArm64
43+
44+
- name: Upload build artifacts
45+
uses: actions/[email protected]
46+
with:
47+
name: v2rayN-windows-desktop
48+
path: |
49+
${{ github.workspace }}/v2rayN/Release/windows*
50+

0 commit comments

Comments
 (0)