-
-
Notifications
You must be signed in to change notification settings - Fork 17
157 lines (128 loc) · 3.78 KB
/
build-all.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
name: build-all
on:
workflow_call:
inputs:
version:
type: string
required: false
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-dawn-mac:
uses: ./.github/workflows/build-dawn-mac.yaml
build-dawn-win:
uses: ./.github/workflows/build-dawn-win.yaml
build-angle-mac:
uses: ./.github/workflows/build-angle-mac.yaml
build-angle-win:
uses: ./.github/workflows/build-angle-win.yaml
build-win:
needs: [build-dawn-win, build-angle-win]
runs-on: windows-2022
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifact
- name: Copy Dawn
shell: cmd
run: |
xcopy artifact\dawn-windows-x64 build\dawn.out\ /s /y
- name: Copy Angle
shell: cmd
run: |
xcopy artifact\angle-windows-x64 build\angle.out\ /s /y
- name: Build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
orcadev.bat build --release --version ${{github.ref_name}} || exit 1
- name: Package
shell: cmd
run: |
if [${{ inputs.version }}]==[] (
orcadev.bat install orca || exit 1
tar --format=ustar -cvzf orca-windows.tar.gz orca
) else (
orcadev.bat install --version ${{ inputs.version }} orca || exit 1
tar --format=ustar -cvzf orca-windows.tar.gz orca
)
- uses: actions/upload-artifact@v4
with:
name: orca-windows
path: orca-windows.tar.gz
build-macos-x64:
needs: [build-dawn-mac, build-angle-mac]
runs-on: macos-13
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifact
- name: Copy Dawn
run: |
mkdir -p build
cp -r artifact/dawn-mac-x64 build/dawn.out
- name: Copy Angle
run: |
mkdir -p build
cp -r artifact/angle-mac-x64 build/angle.out
- name: Build
run: |
./orcadev build --release --version ${{github.ref_name}}
- name: Package
run: |
if [ "${{ inputs.version }}" != '' ] ; then
./orcadev install --version ${{ inputs.version }} orca
else
./orcadev install orca
fi
tar --format=ustar -czf orca-mac-x64.tar.gz orca
- uses: actions/upload-artifact@v4
with:
name: orca-mac-x64
path: orca-mac-x64.tar.gz
build-macos-arm64:
needs: [build-dawn-mac, build-angle-mac]
runs-on: macos-14
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifact
- name: Copy Dawn
run: |
mkdir -p build
cp -r artifact/dawn-mac-arm64 build/dawn.out
- name: Copy Angle
run: |
mkdir -p build
cp -r artifact/angle-mac-arm64 build/angle.out
- name: Build
run: |
./orcadev build --release --version ${{github.ref_name}}
- name: Package
run: |
if [ "${{ inputs.version }}" != '' ] ; then
./orcadev install --version ${{ inputs.version }} orca
else
./orcadev install orca
fi
tar --format=ustar -czf orca-mac-arm64.tar.gz orca
- uses: actions/upload-artifact@v4
with:
name: orca-mac-arm64
path: orca-mac-arm64.tar.gz