Skip to content

Commit 26ba07f

Browse files
committed
action to build workstation edition for mocos
1 parent cef2739 commit 26ba07f

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build Workstation (macOS)
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
9+
jobs:
10+
build-macos:
11+
runs-on: macos-14
12+
timeout-minutes: 60
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.11"
22+
23+
- name: Cache pip
24+
uses: actions/cache@v4
25+
with:
26+
path: |
27+
~/.cache/pip
28+
key: ${{ runner.os }}-pip-${{ hashFiles('trainer/requirements.txt', 'painter/requirements.txt') }}
29+
restore-keys: |
30+
${{ runner.os }}-pip-
31+
32+
- name: Create venvs
33+
shell: bash
34+
run: |
35+
python -m venv trainer/env
36+
python -m venv painter/env
37+
38+
- name: Build Workstation (macOS)
39+
shell: bash
40+
run: |
41+
chmod +x build_workstation_mac.sh
42+
./build_workstation_mac.sh
43+
44+
- name: Sanity check bundle layout
45+
shell: bash
46+
run: |
47+
test -f painter/dist/RootPainter.app/Contents/MacOS/RootPainterTrainerBundle/RootPainterTrainer
48+
test -d painter/dist/RootPainter.app/Contents/MacOS/RootPainterTrainerBundle/_internal
49+
50+
- name: Upload artifact
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: RootPainter-Workstation-macOS
54+
path: painter/dist/RootPainter.app
55+

0 commit comments

Comments
 (0)