Build [Linux] #107
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build [Linux] | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set up Gradle | |
uses: gradle/gradle-build-action@v3 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Install apt dependencies | |
uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: desktop-file-utils appstream wget binutils fuse file | |
- name: Download linuxdeploy | |
run: wget https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20240109-1/linuxdeploy-x86_64.AppImage -O /usr/local/bin/linuxdeploy | |
- name: Grant execute permission for linuxdeploy | |
run: chmod +x /usr/local/bin/linuxdeploy | |
- name: Build AppImage | |
run: ./gradlew desktopApp:packageReleaseAppImage | |
- name: Upload AppImage artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: spmp-linux-release | |
path: desktopApp/build/compose/binaries/main-release/appimage/*.appimage |