beeref/.github/workflows/build.yml
Rebecca Breu ce3751912b Let Pyinstaller build the app as one executable (fixes #4)
In addition, switch over to use a spec file to allow for more flexibility in the future.
2021-08-09 20:04:30 +02:00

34 lines
753 B
YAML

name: build
on: workflow_dispatch
jobs:
build:
name: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-20.04', 'macos-10.15', 'windows-latest']
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install -e .
- name: Run Pyinstaller
run: |
pyinstaller --onefile BeeRef.spec
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: build
path: dist/*
retention-days: 5