Skip to content

Commit

Permalink
add x86_64 runner to macos clang
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkMyCar committed Sep 14, 2024
1 parent 37dbc79 commit 7eeef5f
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/macos-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ on:
description: "Version of clang we'll build."
type: string
required: true
runner:
description: "Type of runner to use/architecture to build for."
type: choice
options:
# ARM
- macos-latest-xlarge
# x86_64
- macos-latest-large
cpu_target:
description: "Type of CPU to optimize for."
type: string
Expand All @@ -19,7 +27,7 @@ name: macOS Clang
jobs:
build_clang:
name: build clang macOS
runs-on: macos-latest-xlarge
runs-on: ${{ inputs.runner }}
permissions:
contents: write
steps:
Expand All @@ -39,7 +47,19 @@ jobs:

- name: Get args
run: |
CLANG_ARCH=aarch64
case ${{ inputs.runner }} in
"macos-latest-xlarge")
CLANG_ARCH=aarch64
;;
"macos-latest-large")
CLANG_ARCH=x86_64
;;
*)
echo "Programming error, unknown platform"
exit 1
;;
esac
echo "CLANG_ARCH=$CLANG_ARCH" >> $GITHUB_ENV
echo "CLANG_TARGET=$CLANG_ARCH-apple-darwin" >> $GITHUB_ENV
Expand Down

0 comments on commit 7eeef5f

Please sign in to comment.