Skip to content

Commit

Permalink
Docker for redhat since github doesnt give me runners
Browse files Browse the repository at this point in the history
  • Loading branch information
zehdari committed Sep 28, 2024
1 parent 2ebe288 commit 62f2da8
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,35 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest, centos-8]
os: [ubuntu-latest, macos-latest, windows-latest, centos]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- name: Set up Python
if: matrix.os != 'centos'
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
- name: Install dependencies (Ubuntu/macOS/Windows)
if: matrix.os != 'centos'
run: |
python -m pip install --upgrade pip
pip install pyinstaller # Install PyInstaller
pip install pyinstaller
- name: Build with PyInstaller
- name: Install dependencies in CentOS via Docker
if: matrix.os == 'centos'
run: |
docker run --rm -v $(pwd):/src -w /src centos:8 \
bash -c "yum install -y python3 python3-devel gcc && \
pip3 install pyinstaller && \
pyinstaller --onefile --windowed SortingApp.py"
- name: Build with PyInstaller (Ubuntu/macOS/Windows)
if: matrix.os != 'centos'
run: |
pyinstaller --onefile --windowed SortingApp.py
Expand Down

0 comments on commit 62f2da8

Please sign in to comment.