-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (44 loc) · 1.44 KB
/
Copy pathbuild.yml
File metadata and controls
53 lines (44 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build & Package SMTP Relay
on:
push:
branches: [ main ]
pull_request:
workflow_call:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Build solution
run: dotnet build SMTPRelay.sln -c Release --no-restore
# ---- Service (self-contained single file, no trim) ------------
- name: Publish Service
run: >
dotnet publish src/SmtpRelay/SmtpRelay.csproj
-c Release
-r win-x64
-p:SelfContained=true
-p:PublishSingleFile=true
-o installer/output/service
# ---- GUI (already self-contained) -----------------------------
- name: Publish GUI
run: >
dotnet publish src/SmtpRelay.GUI/SmtpRelay.GUI.csproj
-c Release
-r win-x64
-p:SelfContained=true
-p:PublishSingleFile=true
-o installer/output/gui
# ---- Compile Inno Setup --------------------------------------
- name: Compile installer
run: '& "C:\\Program Files (x86)\\Inno Setup 6\\ISCC.exe" installer\\SmtpRelayInstaller.iss'
# ---- Upload installer EXE ------------------------------------
- name: Upload installer
uses: actions/upload-artifact@v4
with:
name: SmtpRelaySetup
path: installer/Output/*.exe