-
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
1 parent
480d070
commit 71c344c
Showing
1 changed file
with
29 additions
and
24 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 |
---|---|---|
@@ -1,38 +1,43 @@ | ||
name: Build Linux | ||
name: Build DXUI-Installer | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
workflow_dispatch: # Manual trigger | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Qt | ||
uses: jurplel/install-qt-action@v2 | ||
with: | ||
version: '6.7.1' # Adjust the version as needed | ||
|
||
- name: Generate Makefile | ||
run: qmake -config release | ||
|
||
- name: Build the project | ||
run: make | ||
|
||
- name: Package the application | ||
run: linuxdeployqt DXUI-Installer -appimage | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential libgl1-mesa-dev | ||
- name: Download and install Qt 6.7.1 | ||
run: | | ||
wget https://download.qt.io/official_releases/qt/6.7/6.7.1/single/qt-everywhere-src-6.7.1.tar.xz | ||
tar -xf qt-everywhere-src-6.7.1.tar.xz | ||
cd qt-everywhere-src-6.7.1 | ||
./configure -prefix $PWD/qtbase | ||
make -j$(nproc) | ||
sudo make install | ||
echo "export PATH=$PWD/qtbase/bin:$PATH" >> $GITHUB_ENV | ||
- name: Build DXUI-Installer | ||
run: | | ||
qmake DXUI-Installer.pro | ||
make | ||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: DXUI-Installer-Linux | ||
path: DXUI-Installer.AppImage | ||
name: DXUI-Installer | ||
path: DXUI-Installer |