Skip to content

Commit

Permalink
wip: dynamic CI matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Daichi Sakaue <[email protected]>
  • Loading branch information
yokaze committed Nov 27, 2024
1 parent 992860f commit 70a7baf
Show file tree
Hide file tree
Showing 4 changed files with 304 additions and 269 deletions.
31 changes: 31 additions & 0 deletions .github/actions/prepare_matrix/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Prepare build matrix"
description: "Prepare build matrix"
inputs:
matrix:
description: "Full matrix candidate"
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@a29e8b565651ce417abb5db7164b4a2ad8b6155c # v44.4.0
with:
diff_relative: 'false'
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 70a7baf

Please sign in to comment.