-
-
Notifications
You must be signed in to change notification settings - Fork 19
77 lines (63 loc) · 1.86 KB
/
build-runtime.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: build-runtime
on:
workflow_call:
push:
branches:
- main
jobs:
build-win:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
orcadev.bat build-runtime --release
- name: Tarball
shell: cmd
run: |
rename build orca-runtime-win
rename src src-win
tar -czf orca-runtime-win.tar.gz orca-runtime-win src-win
- uses: actions/upload-artifact@v4
with:
name: orca-runtime-win
path: orca-runtime-win.tar.gz
build-macos-x64:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build
run: |
./orcadev build-runtime --release
mv build orca-runtime-mac-x64
mv src src-mac-x64
tar --format=ustar -czf orca-runtime-mac-x64.tar.gz orca-runtime-mac-x64 src-mac-x64
- uses: actions/upload-artifact@v4
with:
name: orca-runtime-mac-x64
path: orca-runtime-mac-x64.tar.gz
build-macos-arm64:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build
run: |
./orcadev build-runtime --release
mv build orca-runtime-mac-arm64
mv src src-mac-arm64
tar --format=ustar -czf orca-runtime-mac-arm64.tar.gz orca-runtime-mac-arm64 src-mac-arm64
- uses: actions/upload-artifact@v4
with:
name: orca-runtime-mac-arm64
path: orca-runtime-mac-arm64.tar.gz