Skip to content

Commit 3f7765e

Browse files
committed
CI(linux): build with Qt 6
1 parent 5d837ae commit 3f7765e

File tree

1 file changed

+7
-28
lines changed

1 file changed

+7
-28
lines changed

.github/workflows/linux.yml

+7-28
Original file line numberDiff line numberDiff line change
@@ -2,60 +2,39 @@
22

33
name: Linux Package
44

5-
# Controls when the action will run.
6-
on:
7-
# Triggers the workflow on push or pull request events but only for the master branch
8-
push:
9-
branches: [ master ]
10-
pull_request:
11-
branches: [ master ]
5+
on: [push, pull_request, workflow_dispatch]
126

13-
# Allows you to run this workflow manually from the Actions tab
14-
workflow_dispatch:
15-
16-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
177
jobs:
18-
# This workflow contains a single job called "build"
198
build:
20-
# The type of runner that the job will run on
21-
runs-on: ubuntu-22.04
22-
23-
# Steps represent a sequence of tasks that will be executed as part of the job
9+
runs-on: ubuntu-24.04
2410
steps:
2511
- name: Checkout
26-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
2713
with:
2814
submodules: recursive
29-
3015
- name: Install build dept.
3116
run: |
3217
sudo apt update
33-
sudo apt install qtbase5-dev qtmultimedia5-dev libqt5multimedia5-plugins
18+
sudo apt install cmake qt6-base-dev qt6-multimedia-dev
3419
# for linuxdeploy: https://github.com/AppImage/AppImageKit/wiki/FUSE
3520
sudo add-apt-repository universe
3621
sudo apt install libfuse2
37-
3822
- name: Get linuxdeploy
3923
run: |
4024
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
4125
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
4226
chmod +x linuxdeploy-*.AppImage
43-
4427
- name: Build
4528
working-directory: ./
4629
run: |
47-
mkdir build && cd build
48-
cmake ..
49-
cmake --build . -j$(nproc)
50-
cd ..
51-
30+
cmake -B build .
31+
cmake --build build -j
5232
- name: Package
5333
run: |
5434
./linuxdeploy-x86_64.AppImage --appdir AppDir -e build/thplayer -d assets/thplayer.desktop -i assets/thplayer.svg --icon-filename thplayer -p qt -o appimage
5535
mv TouHou_Player*.AppImage thplayer-linux.AppImage
56-
5736
- name: Upload
58-
uses: actions/upload-artifact@v3
37+
uses: actions/upload-artifact@v4
5938
with:
6039
name: Linux-Build
6140
path: thplayer-linux.AppImage

0 commit comments

Comments
 (0)