Skip to content

Commit 7eeef5f

Browse files
committed
add x86_64 runner to macos clang
1 parent 37dbc79 commit 7eeef5f

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/macos-clang.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ on:
55
description: "Version of clang we'll build."
66
type: string
77
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
816
cpu_target:
917
description: "Type of CPU to optimize for."
1018
type: string
@@ -19,7 +27,7 @@ name: macOS Clang
1927
jobs:
2028
build_clang:
2129
name: build clang macOS
22-
runs-on: macos-latest-xlarge
30+
runs-on: ${{ inputs.runner }}
2331
permissions:
2432
contents: write
2533
steps:
@@ -39,7 +47,19 @@ jobs:
3947

4048
- name: Get args
4149
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+
4363
echo "CLANG_ARCH=$CLANG_ARCH" >> $GITHUB_ENV
4464
echo "CLANG_TARGET=$CLANG_ARCH-apple-darwin" >> $GITHUB_ENV
4565

0 commit comments

Comments
 (0)