Skip to content

Commit

Permalink
Update linux.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ParsaAslaniYC authored Oct 7, 2024
1 parent 480d070 commit 71c344c
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions .github/workflows/linux.yml
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

0 comments on commit 71c344c

Please sign in to comment.