mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 06:34:19 +02:00
Tweaks for the generated CI matrix
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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: } }))
|
||||
|
||||
Reference in New Issue
Block a user