diff --git a/.github/workflows/update_licenses.yaml b/.github/workflows/update_licenses.yaml index c669cdb9a..88063fcf5 100644 --- a/.github/workflows/update_licenses.yaml +++ b/.github/workflows/update_licenses.yaml @@ -1,4 +1,4 @@ -# Workflow to update licenses for x86 Linux and MacOS +# Workflow to update licenses for Ubuntu, macOS Silicon and macOS intel name: Update licenses on: workflow_dispatch: @@ -24,20 +24,32 @@ concurrency: cancel-in-progress: true jobs: - # Update licenses for all supported OS + # Update licenses for all selected OS + # The matrix strategy trick is inspired from https://github.com/orgs/community/discussions/26253 update_licenses: strategy: matrix: config: - os_name: linux os: ubuntu-latest - if: ${{ inputs.linux }} - os_name: mac_silicon os: macos-latest-xlarge - if: ${{ inputs.mac_silicon }} - os_name: mac_intel os: macos-latest-large - if: ${{ inputs.mac_intel }} + triggerLinux: + - ${{ inputs.linux }} + triggerMacSilicon: + - ${{ inputs.mac_silicon }} + triggerMacIntel: + - ${{ inputs.mac_intel }} + exclude: + - triggerLinux: false + os_name: linux + - triggerMacSilicon: false + os_name: mac_silicon + - triggerMacIntel: false + os_name: mac_intel + fail-fast: false runs-on: ${{ matrix.config.os }}