Skip to content

Commit b6df201

Browse files
authored
Add build workflow for portable Windows application
1 parent e9f3fd4 commit b6df201

2 files changed

Lines changed: 49 additions & 66 deletions

File tree

.github/workflows/Build.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build Portable Windows x64
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-portable:
12+
name: Build Portable Windows 11 x64
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
21+
- name: Setup .NET SDK
22+
uses: actions/setup-dotnet@v4
23+
with:
24+
dotnet-version: '9.0.x'
25+
26+
- name: Restore dependencies
27+
run: dotnet restore SecureFolderFS.Public.slnx
28+
29+
- name: Publish Portable x64
30+
run: |
31+
dotnet publish src/Platforms/SecureFolderFS.Uno/SecureFolderFS.Uno.csproj `
32+
-c Release `
33+
-f net9.0-windows10.0.26100.0 `
34+
-r win-x64 `
35+
--self-contained true `
36+
-p:PublishSingleFile=true `
37+
-p:IncludeAllContentForSelfExtract=true `
38+
-p:EnableCompressionInSingleFile=true `
39+
-p:DebugType=None `
40+
-p:PublishTrimmed=false `
41+
--output ./publish/SecureFolderFS-Portable-x64
42+
43+
- name: Upload Portable Artifact
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: SecureFolderFS-Portable-Windows-x64
47+
path: ./publish/SecureFolderFS-Portable-x64
48+
if-no-files-found: error
49+
retention-days: 14

0 commit comments

Comments
 (0)