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 3, 2024
1 parent 4d91f47 commit f16eb6b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pyinstallers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: "3.8"
- name: Conda info
shell: bash -l {0}
run: conda info
- name: Conda list
shell: pwsh
run: conda list
- name: Dependencies
run: |
conda activate test
python --version
conda install -c conda-forge pylibiio
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 @@
"""pyinstaller entry point for IIO-Tools CLI"""
from bench.cli import iiotools

iiotools.cli()

0 comments on commit f16eb6b

Please sign in to comment.