From 8c71f04e0c9ecb17ede26e7fdf515b2ed196b42d Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Wed, 3 Jul 2024 13:43:54 -0700 Subject: [PATCH] abort virtualbox macos test if not x86 arch --- .github/workflows/master.yml | 9 +++++++++ .github/workflows/pr.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 8c723d44c8bf..056c8374ff86 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -410,6 +410,15 @@ jobs: SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643 runs-on: macos-12 steps: + - name: Verify x86_64 architecture + shell: bash + run: | + if [ $(uname -m) != "x86_64" ] + then + echo "$(uname -m) detected. This test must be run on x86_64" + exit -1 + fi + exit 0 - name: Install kubectl shell: bash run: | diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 0c2eaca38c32..9a4162a0ca27 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -529,6 +529,15 @@ jobs: SHELL: "/bin/bash" # To prevent https://github.com/kubernetes/minikube/issues/6643 runs-on: macos-12 steps: + - name: Verify x86_64 architecture + shell: bash + run: | + if [ $(uname -m) != "x86_64" ] + then + echo "$(uname -m) detected. This test must be run on x86_64" + exit -1 + fi + exit 0 - name: Install kubectl shell: bash run: |