1
0
Fork 0
mirror of synced 2024-06-02 10:44:40 +12:00

Add Action

This commit is contained in:
Dummerle 2021-03-16 15:46:26 +01:00 committed by GitHub
parent 58fb900269
commit 38d9e6c7c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

62
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,62 @@
# This is a basic workflow to help you get started with Actions
name: Python
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
pyinstaller:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-20.04', 'windows-latest']
fail-fast: true
max-parallel: 3
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Dependencies
run: pip3 install --upgrade
pyinstaller
requests
setuptools
wheel
PyQt5
QtAwesome
pillow
notify-py
- name: Strip
id: strip
run: echo ::set-output name=option::--strip
if: runner.os != 'Windows'
- name: Build
working-directory: Rare
run: pyinstaller
--onefile
--name Rare
--add-data="Rare/Styles/languages/*;Rare/Styles/"
--add-data="Rare/languages/*;Rare/languages"
${{ steps.strip.outputs.option }}
__main__.py
- uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-package
path: Rare/dist/*