Skip to content

Commit

Permalink
feat: added CI to build python binary with pyinsteller (#2)
Browse files Browse the repository at this point in the history
* feat: added CI to build python binary with pyinsteller

* feat: added requirements.txt (#3) (#4)

* feat: 1. only build on a PR or main merge 2.  install the python dependency

* chore: bumped python version
  • Loading branch information
nimish-ks authored Aug 2, 2023
1 parent cd2ce8c commit 453b6c0
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: PyInstaller Build

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
python-version: [3.11]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: pip install -r requirements.txt

- name: Install PyInstaller
run: pip install pyinstaller

- name: Build with PyInstaller
run: pyinstaller --onefile --name phase phase-cli.py

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: ${{ runner.os }}-binary
path: dist/phase

0 comments on commit 453b6c0

Please sign in to comment.