From 62f2da8cff1ce413104807ba5c1d4f08b35836f0 Mon Sep 17 00:00:00 2001 From: zehdari Date: Sat, 28 Sep 2024 01:38:49 -0400 Subject: [PATCH] Docker for redhat since github doesnt give me runners --- .github/workflows/build.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a99dd5f..bdbf663 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ 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 }} @@ -14,16 +14,27 @@ jobs: - 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