This GitHub Action automates the build process for cross-platform desktop applications, supporting multiple operating systems and build configurations.
- 🖥️ Cross-platform support (Windows, macOS, Linux)
- 🛠️ Flexible build type configuration (Debug/Release)
- 📦 Automatic artifact generation and upload
- 🚀 Gradle build caching for improved performance
build_desktop:
name: Build Desktop App
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build Desktop App
uses: openMF/[email protected]
with:
desktop_package_name: 'myapp'
build_desktop:
name: Build Desktop App
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Build Desktop App
uses: openMF/[email protected]
with:
desktop_package_name: 'myapp'
build_type: 'Release'
- Description: Name of the desktop project module
- Required:
true
- Type:
string
- Example:
'mydesktopapp'
- Description: Type of build to perform
- Required:
false
- Default:
'Debug'
- Accepted Values:
'Debug'
'Release'
- Windows:
Windows-Apps
- Contains:
.exe
and.msi
files
- Contains:
- Linux:
Linux-App
- Contains:
.deb
files
- Contains:
- macOS:
MacOS-App
- Contains:
.dmg
files
- Contains:
- Always specify the
desktop_package_name
- Use
Release
build type for production distributions - Check artifact names carefully when downloading
- Verify file integrity after download
- Ensure Gradle build script is correctly configured
- Check that packaging commands match your project structure
- Verify Java 17 is installed and compatible
- Review GitHub Actions logs for detailed build information
- Check Gradle build output for specific errors
- Ensure all required dependencies are included in the build
- Java 17
- Gradle
- Compatible Kotlin Multiplatform Desktop configuration