Version 0.6.1 #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
build-windows: | |
runs-on: 'windows-2019' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- run: python -m pip install . pyinstaller | |
- run: pyinstaller --onefile --name wsinfer-zoo-win64 --add-data "wsinfer_zoo/schemas;schemas" wsinfer_zoo/__main__.py | |
- run: ./dist/wsinfer-zoo-win64 --help | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: dist/* | |
# build-linux: | |
# runs-on: 'ubuntu-latest' | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - uses: actions/setup-python@v2 | |
# with: | |
# python-version: 3.9 | |
# - run: | | |
# python -m pip install . | |
# python -m pip freeze > requirements.txt | |
# PLATFORMS="linux" docker run -v "$(pwd):/src" -v $(pwd):$(pwd) fydeinc/pyinstaller --onefile --name wsinfer_zoo wsinfer_zoo/__main__.py | |
# - uses: actions/upload-artifact@v2 | |
# with: | |
# path: dist/* | |
build-macos: | |
runs-on: 'macos-11' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- run: python -m pip install . pyinstaller | |
- run: pyinstaller --onefile --name wsinfer-zoo-MacOSX-x86_64 --add-data wsinfer_zoo/schemas:schemas wsinfer_zoo/__main__.py | |
- run: ./dist/wsinfer-zoo-MacOSX-x86_64 --help | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: dist/* |