31 lines
774 B
YAML
31 lines
774 B
YAML
name: Build Pommer Executable
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
pip install pyinstaller
|
|
- name: Build executable with PyInstaller
|
|
run: |
|
|
pyinstaller --onefile pommer/pommer.py --name pommer
|
|
- name: Upload executable artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: pommer-linux
|
|
path: dist/pommer |