From 440553e7fbff466a44ee89e4e5f1315317fc04f5 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sat, 3 Aug 2024 07:25:33 +0200 Subject: [PATCH] Added before scripts for macOS (ARM). --- .github/workflows/UnitTesting.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/UnitTesting.yml b/.github/workflows/UnitTesting.yml index ff82455..f9079d1 100644 --- a/.github/workflows/UnitTesting.yml +++ b/.github/workflows/UnitTesting.yml @@ -55,7 +55,12 @@ on: default: '' type: string macos_before_script: - description: 'Scripts to execute before pytest on macOS.' + description: 'Scripts to execute before pytest on macOS (Intel).' + required: false + default: '' + type: string + macos_arm_before_script: + description: 'Scripts to execute before pytest on macOS (ARM).' required: false default: '' type: string @@ -145,7 +150,7 @@ jobs: # Package Manager steps - name: 🔧 Install homebrew dependencies on macOS - if: matrix.system == 'macos' && inputs.brew != '' + if: ( matrix.system == 'macos' || matrix.system == 'macos-arm' ) && inputs.brew != '' run: brew install ${{ inputs.brew }} - name: 🔧 Install apt dependencies on Ubuntu @@ -284,10 +289,14 @@ jobs: # Before scripts - - name: 🍎 macOS before scripts + - name: 🍎 macOS (Intel) before scripts if: matrix.system == 'macos' && inputs.macos_before_script != '' run: ${{ inputs.macos_before_script }} + - name: 🍏 macOS (ARM) before scripts + if: matrix.system == 'macos-arm' && inputs.macos_arm_before_script != '' + run: ${{ inputs.macos_arm_before_script }} + - name: 🐧 Ubuntu before scripts if: matrix.system == 'ubuntu' && inputs.ubuntu_before_script != '' run: ${{ inputs.ubuntu_before_script }}