From 15a8d855350ccfc0a64f9c3b72d8d007519c9213 Mon Sep 17 00:00:00 2001 From: Akashdeep Dhar Date: Mon, 22 Jul 2024 19:10:36 +0530 Subject: [PATCH] Add workflow for building binaries for Windows Signed-off-by: Akashdeep Dhar --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..531a7d4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +--- +name: "expedite" +on: ["push"] +jobs: + ci-build: + runs-on: "windows-latest" + strategy: + fail-fast: false + + steps: + - name: "Checkout the codebase to a local working directory" + uses: "actions/checkout@v4" + + - name: "Setup a functioning local Python 3 installation" + uses: "actions/setup-python@v5" + with: + python-version: "3.12" + + - name: "Install the base dependencies" + run: "python3 -m pip3 install --upgrade poetry pyinstaller" + + - name: "Install the project dependencies" + run: "python3 -m poetry install" + + - name: "Build the project binary" + run: "python3 -m pyinstaller expedite\client\bridge\main.py --clean --onefile --name 'ed-bridge-${{ github.sha }}' --windowed --icon assets\icon\expedite.ico" + + - uses: "actions/upload-artifact@v4" + with: + path: "dist/*"