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() +