Skip to content

Commit 71c344c

Browse files
Update linux.yml
1 parent 480d070 commit 71c344c

File tree

1 file changed

+29
-24
lines changed

1 file changed

+29
-24
lines changed

.github/workflows/linux.yml

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,43 @@
1-
name: Build Linux
1+
name: Build DXUI-Installer
22

33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
branches:
9-
- master
10-
workflow_dispatch: # Manual trigger
9+
- main
1110

1211
jobs:
1312
build:
1413
runs-on: ubuntu-latest
1514

1615
steps:
1716
- name: Checkout code
18-
uses: actions/checkout@v3
19-
20-
- name: Set up Qt
21-
uses: jurplel/install-qt-action@v2
22-
with:
23-
version: '6.7.1' # Adjust the version as needed
24-
25-
- name: Generate Makefile
26-
run: qmake -config release
27-
28-
- name: Build the project
29-
run: make
30-
31-
- name: Package the application
32-
run: linuxdeployqt DXUI-Installer -appimage
33-
34-
- name: Upload artifact
35-
uses: actions/upload-artifact@v4
17+
uses: actions/checkout@v2
18+
19+
- name: Install dependencies
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y build-essential libgl1-mesa-dev
23+
24+
- name: Download and install Qt 6.7.1
25+
run: |
26+
wget https://download.qt.io/official_releases/qt/6.7/6.7.1/single/qt-everywhere-src-6.7.1.tar.xz
27+
tar -xf qt-everywhere-src-6.7.1.tar.xz
28+
cd qt-everywhere-src-6.7.1
29+
./configure -prefix $PWD/qtbase
30+
make -j$(nproc)
31+
sudo make install
32+
echo "export PATH=$PWD/qtbase/bin:$PATH" >> $GITHUB_ENV
33+
34+
- name: Build DXUI-Installer
35+
run: |
36+
qmake DXUI-Installer.pro
37+
make
38+
39+
- name: Upload build artifacts
40+
uses: actions/upload-artifact@v2
3641
with:
37-
name: DXUI-Installer-Linux
38-
path: DXUI-Installer.AppImage
42+
name: DXUI-Installer
43+
path: DXUI-Installer

0 commit comments

Comments
 (0)