Skip to content

Commit 6c505d0

Browse files
committed
feat(ci): Add Windows build workflow
1 parent ba6ff55 commit 6c505d0

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

.github/workflows/build-desktop.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,44 @@ jobs:
110110
path: composeApp/build/compose/binaries/**/*.deb
111111
if-no-files-found: error
112112

113+
build-windows:
114+
name: Build Windows
115+
runs-on: windows-latest
116+
117+
steps:
118+
- name: Checkout code
119+
uses: actions/checkout@v4
120+
121+
- name: Set up JDK 17
122+
uses: actions/setup-java@v4
123+
with:
124+
java-version: '17'
125+
distribution: 'temurin'
126+
127+
- name: Setup Gradle
128+
uses: gradle/actions/setup-gradle@v3
129+
130+
- name: Create Release Distributable
131+
run: ./gradlew :composeApp:createReleaseDistributable
132+
133+
- name: Setup Inno Setup
134+
uses: thirdwigger/[email protected]
135+
with:
136+
version: "6.2.2"
137+
138+
- name: Build Installer with Inno Setup
139+
run: iscc installer/setup.iss
140+
141+
- name: Upload Windows Artifact
142+
uses: actions/upload-artifact@v4
143+
with:
144+
name: Windows-App-Exe
145+
path: installer/*.exe
146+
if-no-files-found: error
147+
113148
release:
114149
name: Create Release
115-
needs: [build-macos-arm64, build-macos-x64, build-linux]
150+
needs: [build-macos-arm64, build-macos-x64, build-linux, build-windows]
116151
runs-on: ubuntu-latest
117152
if: startsWith(github.ref, 'refs/tags/')
118153

0 commit comments

Comments
 (0)