-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (42 loc) · 1.79 KB
/
build.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build artifacts
on:
push:
pull_request:
create:
env:
ANGLE_BUILDER_OUTPUT_FOLDER: ./angle-builder-output
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout angle-builder
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
- name: Install angle-builder
run: pip install .
- name: Build artifacts for macos-x64
run: angle-builder macos-x64 --artifact-output-folder $ANGLE_BUILDER_OUTPUT_FOLDER
- name: Build artifacts for macos-arm64
run: angle-builder macos-arm64 --artifact-output-folder $ANGLE_BUILDER_OUTPUT_FOLDER
- name: Build artifacts for macos-universal
run: angle-builder macos-universal --artifact-output-folder $ANGLE_BUILDER_OUTPUT_FOLDER
- name: Build artifacts for iphoneos-arm64
run: angle-builder iphoneos-arm64 --artifact-output-folder $ANGLE_BUILDER_OUTPUT_FOLDER
- name: Build artifacts for iphonesimulator-x64
run: angle-builder iphonesimulator-x64 --artifact-output-folder $ANGLE_BUILDER_OUTPUT_FOLDER
- name: Build artifacts for iphonesimulator-arm64
run: angle-builder iphonesimulator-arm64 --artifact-output-folder $ANGLE_BUILDER_OUTPUT_FOLDER
- name: Build artifacts for iphoneall-universal
run: angle-builder iphoneall-universal --artifact-output-folder $ANGLE_BUILDER_OUTPUT_FOLDER
- name: Store artifacts
uses: actions/upload-artifact@v4
with:
name: macos-angle-artifacts
path: ${{ env.ANGLE_BUILDER_OUTPUT_FOLDER }}
- name: Upload artifacts to release
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
files: "${{ env.ANGLE_BUILDER_OUTPUT_FOLDER }}/*"
draft: true