1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00
JUCE/.github/actions/job_wrapper/action.yaml
2025-03-04 11:36:41 +00:00

26 lines
697 B
YAML

name: Job Wrapper
description: Setup and cleanup for build jobs
inputs:
artifacts:
description: Required artifacts
required: false
default: ''
command:
description: The build command
required: true
runs:
using: composite
steps:
- name: Get artifacts
uses: ./.github/actions/download_artifacts
with:
keys: |
JUCE-utils
${{ inputs.artifacts }}
- run: ${{ inputs.command }}
shell: ${{ runner.os == 'Windows' && 'powershell' || 'bash' }}
- name: Handle job failure
if: failure()
run: python3 JUCE-utils/.github/workflows/post_job.py
shell: ${{ runner.os == 'Windows' && 'powershell' || 'bash' }}