Merge pull request #27 from Kiln-AI/dmg #409
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 Desktop Apps | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# macos-latest is for arm64 build, macos-13 is for x86_64 | |
os: ["windows-latest", "macos-latest", "macos-13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
# Use 3.12 - 3.13 not working yet (Numpy verion too old) | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
cache: "pip" | |
# Use GH python version (includes TK/TCL) | |
- name: Set up Python using GH python version | |
run: uv venv --python 3.12 --python-preference only-system | |
- name: Install the project | |
run: uv sync | |
# Compress MacOS app param ignored on Windows | |
- run: uv run sh ./app/desktop/build_desktop_app.sh --compress-mac-app | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: kiln-desktop-${{ runner.os }}-${{ runner.arch }} | |
path: ./app/desktop/build/dist/* |