Skip to content

Commit

Permalink
working for redhat, now to readd ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
zehdari committed Sep 28, 2024
1 parent 269f187 commit 1fd4e08
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,32 @@ jobs:
steps:
- uses: actions/checkout@v2

# Set up Python for Ubuntu, macOS, and Windows
- name: Set up Python (Ubuntu/macOS/Windows)
if: matrix.os != 'ubuntu-latest'
uses: actions/setup-python@v2
with:
python-version: '3.x'

# Install dependencies and PyInstaller for Ubuntu, macOS, and Windows
- name: Install dependencies (Ubuntu/macOS/Windows)
if: matrix.os != 'ubuntu-latest'
run: |
python -m pip install --upgrade pip
pip install pyinstaller
# Build with PyInstaller for Ubuntu, macOS, and Windows
- name: Build with PyInstaller (Ubuntu/macOS/Windows)
if: matrix.os != 'ubuntu-latest'
run: |
pyinstaller --onefile --windowed SortingApp.py
- name: Build for Red Hat using Docker on Ubuntu
# Upload the native Ubuntu/macOS/Windows builds
- name: Upload executable (Native Builds)
uses: actions/upload-artifact@v3
with:
name: executable-${{ matrix.os }}
path: dist/*

# Additional step: Build for Red Hat using Docker on Ubuntu
- name: Build for Red Hat-compatible (via Docker)
if: matrix.os == 'ubuntu-latest'
run: |
docker run --rm -v ${{ github.workspace }}:/src -w /src almalinux:8 \
Expand All @@ -39,8 +47,10 @@ jobs:
python3 -m pip install pyinstaller && \
pyinstaller --onefile --windowed SortingApp.py"
- name: Upload executable
# Upload the Red Hat-compatible build
- name: Upload Red Hat-compatible executable
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
with:
name: executable
name: executable-redhat
path: dist/*

0 comments on commit 1fd4e08

Please sign in to comment.