mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Allow installing packages using brew.
This commit is contained in:
9
.github/workflows/UnitTesting.yml
vendored
9
.github/workflows/UnitTesting.yml
vendored
@@ -34,6 +34,11 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
type: string
|
type: string
|
||||||
|
brew:
|
||||||
|
description: 'macOS dependencies to be installed through brew.'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
pacboy:
|
pacboy:
|
||||||
description: 'MSYS2 dependencies to be installed through pacboy (pacman).'
|
description: 'MSYS2 dependencies to be installed through pacboy (pacman).'
|
||||||
required: false
|
required: false
|
||||||
@@ -129,6 +134,10 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Package Manager steps
|
# Package Manager steps
|
||||||
|
- name: 🔧 Install homebrew dependencies on macOS
|
||||||
|
if: matrix.system == 'macos' && inputs.brew != ''
|
||||||
|
run: brew install ${{ inputs.brew }}
|
||||||
|
|
||||||
- name: 🔧 Install apt dependencies on Ubuntu
|
- name: 🔧 Install apt dependencies on Ubuntu
|
||||||
if: matrix.system == 'ubuntu' && inputs.apt != ''
|
if: matrix.system == 'ubuntu' && inputs.apt != ''
|
||||||
run: sudo apt-get install -y --no-install-recommends ${{ inputs.apt }}
|
run: sudo apt-get install -y --no-install-recommends ${{ inputs.apt }}
|
||||||
|
|||||||
Reference in New Issue
Block a user