mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Added before scripts for macOS (ARM).
This commit is contained in:
15
.github/workflows/UnitTesting.yml
vendored
15
.github/workflows/UnitTesting.yml
vendored
@@ -55,7 +55,12 @@ on:
|
|||||||
default: ''
|
default: ''
|
||||||
type: string
|
type: string
|
||||||
macos_before_script:
|
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
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
type: string
|
type: string
|
||||||
@@ -145,7 +150,7 @@ jobs:
|
|||||||
|
|
||||||
# Package Manager steps
|
# Package Manager steps
|
||||||
- name: 🔧 Install homebrew dependencies on macOS
|
- 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 }}
|
run: brew install ${{ inputs.brew }}
|
||||||
|
|
||||||
- name: 🔧 Install apt dependencies on Ubuntu
|
- name: 🔧 Install apt dependencies on Ubuntu
|
||||||
@@ -284,10 +289,14 @@ jobs:
|
|||||||
|
|
||||||
# Before scripts
|
# Before scripts
|
||||||
|
|
||||||
- name: 🍎 macOS before scripts
|
- name: 🍎 macOS (Intel) before scripts
|
||||||
if: matrix.system == 'macos' && inputs.macos_before_script != ''
|
if: matrix.system == 'macos' && inputs.macos_before_script != ''
|
||||||
run: ${{ 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
|
- name: 🐧 Ubuntu before scripts
|
||||||
if: matrix.system == 'ubuntu' && inputs.ubuntu_before_script != ''
|
if: matrix.system == 'ubuntu' && inputs.ubuntu_before_script != ''
|
||||||
run: ${{ inputs.ubuntu_before_script }}
|
run: ${{ inputs.ubuntu_before_script }}
|
||||||
|
|||||||
Reference in New Issue
Block a user