From 588c15ba33da046c95d27f877fa2ade60af1edd6 Mon Sep 17 00:00:00 2001 From: "Travis F. Collins" Date: Wed, 2 Oct 2024 15:14:46 -0600 Subject: [PATCH] Add pyinstaller generation Signed-off-by: Travis F. Collins --- .github/workflows/pyinstallers.yml | 27 +++++++++++++++++++++++++++ cli.py | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/pyinstallers.yml create mode 100644 cli.py diff --git a/.github/workflows/pyinstallers.yml b/.github/workflows/pyinstallers.yml new file mode 100644 index 0000000..5ef9b80 --- /dev/null +++ b/.github/workflows/pyinstallers.yml @@ -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@v2 + with: + name: pybenchiio + path: dist/pybenchiio.exe \ No newline at end of file diff --git a/cli.py b/cli.py new file mode 100644 index 0000000..845719b --- /dev/null +++ b/cli.py @@ -0,0 +1,4 @@ +from bench.cli import iiotools + +iiotools.cli() +