-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
63 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Linux Package | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Install build dept. | ||
run: | | ||
sudo apt update | ||
sudo apt install cmake qt6-base-dev qt6-tools-dev portaudio19-dev | ||
# for linuxdeploy: https://github.com/AppImage/AppImageKit/wiki/FUSE | ||
# linuxdeploy-plugin-qt still requires qmake currently: https://github.com/linuxdeploy/linuxdeploy-plugin-qt/issues/156 | ||
sudo add-apt-repository universe | ||
sudo apt install libfuse2 qmake6 | ||
- name: Get linuxdeploy | ||
run: | | ||
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage | ||
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage | ||
chmod +x linuxdeploy-*.AppImage | ||
- name: Build | ||
working-directory: ./ | ||
run: | | ||
cmake -B build . | ||
cmake --build build -j | ||
- name: Package | ||
env: | ||
QMAKE: /usr/bin/qmake6 | ||
run: | | ||
./linuxdeploy-x86_64.AppImage --appdir AppDir -e build/pmidi -d dist/net.blumia.pineapple-midi-player.desktop.desktop -i assets/icons/app-icon.svg --icon-filename net.blumia.pineapple-midi-player -p qt -o appimage | ||
ls | ||
mv TouHou_Player*.AppImage thplayer-linux.AppImage | ||
- name: Upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Linux-Build | ||
path: thplayer-linux.AppImage |
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