mirror of
https://github.com/tanrax/RSSingle.git
synced 2024-11-22 07:45:41 +01:00
Start testing release packager
This commit is contained in:
parent
b526fc582f
commit
57ed8aef3a
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
# 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
|
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:
|
create-and-publish-release:
|
||||||
needs: build-and-check
|
needs: build-and-check
|
||||||
if: startsWith(github.ref, 'refs/tags/') && success()
|
if: startsWith(github.ref, 'refs/tags/') && success()
|
||||||
@ -34,8 +34,9 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
# `--windowed` is for macOS, and `--onefile` is for other OSes.
|
# `--windowed` is for macOS, and `--onefile` is for other OSes.
|
||||||
pyinstaller-type: ['--windowed', '--onefile']
|
pyinstaller-type: ['--windowed', '--onefile']
|
||||||
runs-on: ubuntu-latest
|
runner: ["macos-latest", "windows-latest", "ubuntu-latest"]
|
||||||
name: Builder for Python all-in-one executables, published on a releases
|
runs-on: ${{ matrix.runner }}
|
||||||
|
name: Builder for Python all-in-one executables, published on a release.
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -48,7 +49,11 @@ jobs:
|
|||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pyinstaller
|
pip install pyinstaller
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
- name: Build RSSingle
|
- name: Build RSSingle (Windows, Linux)
|
||||||
run: pyinstaller ${{ matrix.pyinstaller-type }} ./rssingle.py
|
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
|
- name: List artifacts for finishing this action
|
||||||
run: find ./dist/
|
run: find ./dist/
|
||||||
|
Loading…
Reference in New Issue
Block a user