mirror of
https://github.com/felixfoertsch/EurKEY-macOS.git
synced 2026-04-17 15:09:32 +02:00
add actions/setup-python for fpdf2 dependency (PEP 668 blocks bare pip install on macOS runners). run bundle build before validation so keylayout files exist when validator runs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
45 lines
884 B
YAML
45 lines
884 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'EurKey-macOS.bundle/**'
|
|
- 'scripts/**'
|
|
- 'spec/**'
|
|
pull_request:
|
|
paths:
|
|
- 'EurKey-macOS.bundle/**'
|
|
- 'scripts/**'
|
|
- 'spec/**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: install Python dependencies
|
|
run: pip install fpdf2
|
|
|
|
- name: build bundle
|
|
run: bash scripts/build-bundle.sh
|
|
|
|
- name: validate layouts
|
|
run: python3 scripts/validate_layouts.py
|
|
|
|
- name: create DMG
|
|
run: bash scripts/create-dmg.sh
|
|
|
|
- name: upload DMG
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: EurKEY-macOS-DMG
|
|
path: build/*.dmg
|