diff --git a/.github/workflows/build-gems.yml b/.github/workflows/build-gems.yml index 05a3460c..b703e614 100644 --- a/.github/workflows/build-gems.yml +++ b/.github/workflows/build-gems.yml @@ -12,22 +12,7 @@ concurrency: jobs: ci-data: - runs-on: ubuntu-latest - outputs: - result: ${{ steps.fetch.outputs.result }} - steps: - - id: fetch - uses: oxidize-rb/actions/fetch-ci-data@1.4.3 - with: - supported-ruby-platforms: | - # Excluding: - # `arm-linux` and `arm-linux-musl`: Cranelift doesn't support 32-bit architectures - # `x64-mingw32`: `x64-mingw-ucrt` should be used for Ruby 3.1+ (https://github.com/rake-compiler/rake-compiler-dock?tab=readme-ov-file#windows) - # 3.0 is deprecated as stable ruby version according to: - # https://github.com/oxidize-rb/actions/blob/main/fetch-ci-data/evaluate.rb#L54 - exclude: [arm-linux, arm-linux-musl, x64-mingw32] - stable-ruby-versions: | - exclude: [head] + uses: ./.github/workflows/native-gem-matrix.yml native: name: Build native gems diff --git a/.github/workflows/native-gem-matrix.yml b/.github/workflows/native-gem-matrix.yml new file mode 100644 index 00000000..3d2aa7b4 --- /dev/null +++ b/.github/workflows/native-gem-matrix.yml @@ -0,0 +1,28 @@ +--- +name: Native gem matrix + +on: + workflow_call: + outputs: + result: + description: Supported Ruby platforms and stable Ruby versions + value: ${{ jobs.resolve.outputs.result }} + +jobs: + resolve: + runs-on: ubuntu-latest + outputs: + result: ${{ steps.fetch.outputs.result }} + steps: + - id: fetch + uses: oxidize-rb/actions/fetch-ci-data@1.4.3 + with: + supported-ruby-platforms: | + # Excluding: + # `arm-linux` and `arm-linux-musl`: Cranelift doesn't support 32-bit architectures + # `x64-mingw32`: `x64-mingw-ucrt` should be used for Ruby 3.1+ (https://github.com/rake-compiler/rake-compiler-dock?tab=readme-ov-file#windows) + # 3.0 is deprecated as stable ruby version according to: + # https://github.com/oxidize-rb/actions/blob/main/fetch-ci-data/evaluate.rb#L54 + exclude: [arm-linux, arm-linux-musl, x64-mingw32] + stable-ruby-versions: | + exclude: [head] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c48d3f3d..b4c7b581 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,22 +12,7 @@ concurrency: jobs: ci-data: - runs-on: ubuntu-latest - outputs: - result: ${{ steps.fetch.outputs.result }} - steps: - - id: fetch - uses: oxidize-rb/actions/fetch-ci-data@1.4.3 - with: - supported-ruby-platforms: | - # Excluding: - # `arm-linux`: Cranelift doesn't support 32-bit architectures - # `x64-mingw32`: `x64-mingw-ucrt` should be used for Ruby 3.1+ (https://github.com/rake-compiler/rake-compiler-dock?tab=readme-ov-file#windows) - # 3.0 is deprecated as stable ruby version according to: - # https://github.com/oxidize-rb/actions/blob/main/fetch-ci-data/evaluate.rb#L54 - exclude: [arm-linux, x64-mingw32] - stable-ruby-versions: | - exclude: [head] + uses: ./.github/workflows/native-gem-matrix.yml build: name: Build native gems