Skip to content

Commit

Permalink
chore: improve update license workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanBredehoft committed Apr 19, 2024
1 parent c6917a3 commit 62de9e2
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/update_licenses.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}
Expand Down

0 comments on commit 62de9e2

Please sign in to comment.