Tweaks for the generated CI matrix

This commit is contained in:
Benoit Daloze
2026-01-07 22:30:14 +01:00
parent c2f29a7833
commit 5dd816ae01
2 changed files with 1 additions and 8 deletions
-7
View File
@@ -15,32 +15,25 @@ permissions:
jobs:
test-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v6
- uses: ./
with:
ruby-version: ruby
- id: matrix
run: echo "matrix=$(ruby generate-test-matrix.rb)" | tee -a "$GITHUB_OUTPUT"
- run: echo "$MATRIX" | yq -P
env:
MATRIX: ${{ steps.matrix.outputs.matrix }}
test:
needs: [test-matrix]
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.test-matrix.outputs.matrix) }}
name: ${{ matrix.os }} ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
steps:
+1 -1
View File
@@ -74,4 +74,4 @@ matrix -= ubuntu_arm64_runners.product(%w[1.9 2.0 2.1 2.2])
# RubyInstaller windows-arm64 builds only exist for Ruby 3.4+
matrix -= windows_arm64_runners.product(%w[2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3])
puts(JSON.generate(matrix.sort.collect { |os, ruby| { os: os, ruby: ruby } }))
puts(JSON.generate(matrix.sort.map { |os, ruby| { os:, ruby: } }))