-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.07 KB
/
build_desktop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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/*