Build branch with PyInstaller #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build branch with PyInstaller | |
on: | |
workflow_call: | |
inputs: | |
branch: | |
required: true | |
type: string | |
outputs: | |
bin_path: | |
description: "path to built binary" | |
value: ${{ jobs.build.outputs.bin_path }} | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: "branch to build from:" | |
required: true | |
type: string | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
outputs: | |
bin_path: ${{ steps.pyinstaller.bin_path }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.branch }} | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
cache: pip | |
- name: Install dependencies | |
run: | | |
# apt-get install python3-tk | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pyinstaller | |
- name: Build with pyinstaller | |
id: pyinstaller | |
run: | | |
pyinstaller LogosLinuxInstaller.spec --clean | |
#find . -name 'LogosLinuxInstaller*' | |
echo "bin_path=dist/LogosLinuxInstaller" >> $GITHUB_OUTPUT | |
echo $GITHUB_OUTPUT |