Commit 20b6a0e 1 parent 31a6b89 commit 20b6a0e Copy full SHA for 20b6a0e
File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -281,6 +281,27 @@ jobs:
281
281
# Refer to https://docs.github.com/en/actions/using-github-hosted-runners/using-larger-runners/about-larger-runners#about-macos-larger-runners.
282
282
os : [ macos-latest-xlarge, macos-latest-large ]
283
283
steps :
284
+ - name : Verify Runner Architecture
285
+ run : |
286
+ ARCH=$(uname -m)
287
+ echo "Detected architecture: $ARCH"
288
+
289
+ if [ "${{ matrix.runner }}" == "macos-latest-xlarge" ]; then
290
+ if [ "$ARCH" != "arm64" ]; then
291
+ echo "Error: Expected ARM architecture (arm64) for macos-latest-xlarge, but got $ARCH."
292
+ exit 1
293
+ fi
294
+ elif [ "${{ matrix.runner }}" == "macos-latest-large" ]; then
295
+ if [ "$ARCH" != "x86_64" ]; then
296
+ echo "Error: Expected Intel architecture (x86_64) for macos-latest-large, but got $ARCH."
297
+ exit 1
298
+ fi
299
+ else
300
+ echo "Error: Unexpected runner type ${{ matrix.runner }}!"
301
+ exit 1
302
+ fi
303
+
304
+ echo "Runner architecture verified successfully."
284
305
- name : Checkout Vector
285
306
uses : actions/checkout@v4
286
307
with :
You can’t perform that action at this time.
0 commit comments