Skip to content

Commit

Permalink
maybe rocky can save the day pt2
Browse files Browse the repository at this point in the history
  • Loading branch information
zehdari committed Sep 28, 2024
1 parent c162c93 commit 74dcfe5
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,35 @@ jobs:
with:
python-version: '3.x'

# Install dependencies and PyInstaller for Ubuntu, macOS, and Windows using requirements.txt
- name: Install dependencies (Ubuntu/macOS/Windows)
# Install dependencies on Ubuntu
- name: Install Ubuntu dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y \
libxkbcommon-x11-0 \
libxcb-shape0 \
libxcb-xfixes0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-render-util0 \
libxcb-cursor0 \
libxcb-xkb1 \
libxcb-randr0 \
libxkbcommon0 \
libxcb-render0 \
libxrender1 \
libgl1-mesa-glx \
build-essential \
qtbase5-dev \
qtchooser \
qt5-qmake \
qtbase5-dev-tools
# Install dependencies for macOS and Windows using requirements.txt
- name: Install dependencies (macOS/Windows)
if: matrix.os != 'ubuntu-latest'
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
Expand Down Expand Up @@ -48,7 +75,7 @@ jobs:
dist/*.exe
dist/*.AppImage
# Additional step: Build for Red Hat-compatible (via Docker) on Ubuntu
# Additional step: Build for Rocky Linux-compatible (via Docker) on Ubuntu
- name: Build for Rocky Linux-compatible (via Docker)
if: matrix.os == 'ubuntu-latest'
run: |
Expand All @@ -58,7 +85,7 @@ jobs:
python3 -m pip install wheel && \
python3 -m pip install --upgrade pip setuptools && \
export PATH=/usr/lib64/qt5/bin:$PATH && \
python3 -m pip install PyQt6==6.4.0 && \
python3 -m pip install --user --no-binary :all: PyQt6 && \
python3 -m pip install -r requirements.txt && \
pyinstaller --onefile --windowed SortingApp.py"
Expand Down

0 comments on commit 74dcfe5

Please sign in to comment.