Skip to content

Commit 38830ef

Browse files
committed
ci: Add GitHub Actions workflow for building desktop distributions
This commit introduces a new GitHub Actions workflow (`.github/workflows/build-desktop.yml`) to automate the creation of native desktop application packages. The workflow is triggered on pushes to version tags (e.g., `v1.0.0`). It uses a matrix strategy to build for multiple operating systems: - **macOS:** Generates a `.dmg` file. - **Windows:** Generates an `.msi` file. - **Linux (Ubuntu):** Generates a `.deb` file. Each build job checks out the code, sets up JDK 17, and runs the corresponding Gradle task (`packageDmg`, `packageMsi`, `packageDeb`) to create the native package. The resulting artifact is then uploaded.
1 parent c67ae62 commit 38830ef

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build-desktop.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,18 @@ jobs:
3636
if: runner.os != 'Windows'
3737
run: chmod +x gradlew
3838

39+
- name: List Gradle tasks
40+
run: ./gradlew tasks --all
41+
3942
- name: Build native package
4043
run: ./gradlew ${{ matrix.gradle_task }} --stacktrace
4144

45+
- name: Check build output
46+
run: ls -R build/compose/binaries || true
47+
4248
- name: Upload artifact
4349
uses: actions/upload-artifact@v4
4450
with:
4551
name: build-${{ matrix.format }}
46-
path: build/compose/binaries/main/${{ matrix.format }}/
52+
path: |
53+
build/compose/binaries/**/${{ matrix.format }}/

0 commit comments

Comments
 (0)