-
Notifications
You must be signed in to change notification settings - Fork 3
84 lines (72 loc) · 1.85 KB
/
build-launcher.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: 'Build launcher'
on:
push:
branches:
- '**'
paths:
- '.github/workflows/**'
- 'src/**'
- '*.sln'
- '*.props'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/**'
- 'src/**'
- '*.sln'
- '*.props'
defaults:
run:
shell: pwsh
jobs:
publish:
name: 'Publish'
strategy:
matrix:
system:
- windows-2022
config:
- Release
runtime:
- win-x86
- win-x64
runs-on: ${{ matrix.system }}
env:
Project: src\ImeSense.Launchers.Belarus.Avalonia\ImeSense.Launchers.Belarus.Avalonia.csproj
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: '7.0.x'
- name: Publish launcher
run: |
dotnet publish $env:Project `
--configuration ${{ matrix.config }} `
--runtime ${{ matrix.runtime }} `
--self-contained true `
-p:PublishSingleFile=true `
-p:IncludeAllContentForSelfExtract=true `
-p:EnableCompressionInSingleFile=true `
-p:DebugSymbols=false `
-p:DebugType=None
#- name: Publish installer
# if: matrix.runtime == 'win-x86'
# shell: cmd
# run: |
# "%ProgramFiles(x86)%\Inno Setup 6\iscc.exe" src\ImeSense.Launchers.Belarus.Setup\Setup.iss
- name: Upload launcher
uses: actions/upload-artifact@v3
with:
name: sblauncher-${{ matrix.runtime }}-${{ github.sha }}
path: bin/Release/${{ matrix.runtime }}/publish/
#- name: Upload installer
# uses: actions/upload-artifact@v3
# if: matrix.runtime == 'win-x86'
# with:
# name: sbinstaller-${{ github.sha }}
# path: src/ImeSense.Launchers.Belarus.Setup/Output/