Skip to content

Commit

Permalink
Add pyinstaller generation
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Oct 2, 2024
1 parent 4d91f47 commit 612ffd0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pyinstallers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Generate pyinstaller executables for Windows, macOS, and Linux
name: Generate PyInstaller

on: [push, pull_request]

jobs:
Windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install -r requirements_dev.txt
pip install -r doc/requirements.txt
pip install pyinstaller
- name: Generate Windows executable
run: |
pyinstaller --onefile --name=pybenchiio cli.py
- name: Upload Windows executable
uses: actions/upload-artifact@v4
with:
name: pybenchiio
path: dist/pybenchiio.exe
4 changes: 4 additions & 0 deletions cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from bench.cli import iiotools

iiotools.cli()

0 comments on commit 612ffd0

Please sign in to comment.