Skip to content

Interesting, locally the inverse is a syntax error with ACT #21

Interesting, locally the inverse is a syntax error with ACT

Interesting, locally the inverse is a syntax error with ACT #21

name: Build Windows Installer via Inno Compiler

Check failure on line 1 in .github/workflows/build_pyinst_inno_installer.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_pyinst_inno_installer.yml

Invalid workflow file

(Line: 9, Col: 14): Expected mapping end, (Line: 8, Col: 5): Expected mapping end, (Line: 7, Col: 3): Expected mapping end, (Line: 1, Col: 1): Expected mapping end, expected document end
on:
workflow_dispatch:
jobs:
build_windows_binary:
name: Build Windows Binary (PyInstaller + Inno)
runs-on: {{ $matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Cache pip dependencies
uses: actions/cache@v4
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python Dependencies
shell: pwsh
run: |
python -m pip install --upgrade pip
python -m pip install "pyinstaller==6.10.0" `
"PySide6==6.10.0" `
"pyqtgraph==0.13.7" `
"numpy==2.2.4" `
"STO-OSCR==2025.8.10.0" `
"OSCR-django-client==2025.7.19.0" `
"pydantic==2.12.3"
- name: Build OSCR-UI Executable with PyInstaller
shell: pwsh
run: |
pyinstaller --name OSCR-UI `
--onedir main.py `
--add-data "assets;assets" `
--add-data "locales;locales" `
--icon "assets\oscr_icon_small.ico" `
--windowed
- name: Compile Inno Setup Installer
uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
with:
path: OSCR-UI.iss
options: /Odist /Qp
- name: Upload PyInstaller Artifact
uses: actions/upload-artifact@v4
with:
name: OSCR-UI_x86-64_Windows
path: dist/OSCR-UI
- name: Upload Inno Setup Installer Artifact
uses: actions/upload-artifact@v4
with:
name: OSCR-UI_x86-64_Windows_Installer
path: dist/*.exe # Robust: catches any .exe in dist/