File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 5
5
description : " Version of clang we'll build."
6
6
type : string
7
7
required : true
8
+ runner :
9
+ description : " Type of runner to use/architecture to build for."
10
+ type : choice
11
+ options :
12
+ # ARM
13
+ - macos-latest-xlarge
14
+ # x86_64
15
+ - macos-latest-large
8
16
cpu_target :
9
17
description : " Type of CPU to optimize for."
10
18
type : string
@@ -19,7 +27,7 @@ name: macOS Clang
19
27
jobs :
20
28
build_clang :
21
29
name : build clang macOS
22
- runs-on : macos-latest-xlarge
30
+ runs-on : ${{ inputs.runner }}
23
31
permissions :
24
32
contents : write
25
33
steps :
39
47
40
48
- name : Get args
41
49
run : |
42
- CLANG_ARCH=aarch64
50
+ case ${{ inputs.runner }} in
51
+ "macos-latest-xlarge")
52
+ CLANG_ARCH=aarch64
53
+ ;;
54
+ "macos-latest-large")
55
+ CLANG_ARCH=x86_64
56
+ ;;
57
+ *)
58
+ echo "Programming error, unknown platform"
59
+ exit 1
60
+ ;;
61
+ esac
62
+
43
63
echo "CLANG_ARCH=$CLANG_ARCH" >> $GITHUB_ENV
44
64
echo "CLANG_TARGET=$CLANG_ARCH-apple-darwin" >> $GITHUB_ENV
45
65
You can’t perform that action at this time.
0 commit comments