Skip to content

Commit

Permalink
Generate CI matrix dynamically
Browse files Browse the repository at this point in the history
Signed-off-by: Daichi Sakaue <[email protected]>
  • Loading branch information
yokaze committed Nov 28, 2024
1 parent f025ef6 commit c88fcf9
Show file tree
Hide file tree
Showing 5 changed files with 303 additions and 237 deletions.
30 changes: 30 additions & 0 deletions .github/actions/prepare_matrix/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Prepare build matrix"
description: "Prepare build matrix"
inputs:
matrix:
description: "Candidate build jobs"
required: true
default: ""
outputs:
jobs:
description: "matrix"
value: ${{ steps.prepare-matrix.outputs.jobs }}

runs:
using: composite
steps:
- name: Check and output changed files
id: changed-files
uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf # v45.0.4
with:
files_ignore: |
**/*.md
separator: ','
write_output_files: 'true'
- id: prepare-matrix
shell: bash
env:
INPUT_MATRIX: ${{ inputs.matrix }}
run: |
./generate_matrix
echo "jobs=$(cat .github/outputs/__matrix.json)" >> $GITHUB_OUTPUT
Loading

0 comments on commit c88fcf9

Please sign in to comment.