From 57ed8aef3ac970d3b659cfed4327efec81741328 Mon Sep 17 00:00:00 2001 From: Dom Rodriguez Date: Mon, 25 Dec 2023 20:24:28 +0000 Subject: [PATCH] Start testing release packager --- .github/workflows/ci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8dc7375..a7d3e8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics -# to be completed once macOS builds fixed + # to be completed once macOS builds fixed create-and-publish-release: needs: build-and-check if: startsWith(github.ref, 'refs/tags/') && success() @@ -34,8 +34,9 @@ jobs: matrix: # `--windowed` is for macOS, and `--onefile` is for other OSes. pyinstaller-type: ['--windowed', '--onefile'] - runs-on: ubuntu-latest - name: Builder for Python all-in-one executables, published on a releases + runner: ["macos-latest", "windows-latest", "ubuntu-latest"] + runs-on: ${{ matrix.runner }} + name: Builder for Python all-in-one executables, published on a release. steps: - name: Checkout sources uses: actions/checkout@v2 @@ -48,7 +49,11 @@ jobs: python -m pip install --upgrade pip pip install pyinstaller pip install -r requirements.txt - - name: Build RSSingle - run: pyinstaller ${{ matrix.pyinstaller-type }} ./rssingle.py + - name: Build RSSingle (Windows, Linux) + if: ${{ matrix.runner != 'macos-latest' }} + run: pyinstaller --onefile ./rssingle.py + - name: Build RSSingle (macOS) + if: ${{ matrix.runner == 'macos-latest' }} + run: pyinstaller --windowed ./rssingle.py - name: List artifacts for finishing this action run: find ./dist/