From 66e90f1fd8da98508d81738bb94bcdd1a339e8a5 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 1 Aug 2024 14:41:51 +0900 Subject: [PATCH 1/2] Use re-using workflow --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index da39175..5da29e4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,12 @@ name: CI on: [push, pull_request] jobs: - build: + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + min_version: 2.5 + test: + needs: ruby-versions name: build (${{ matrix.ruby }} / ${{ matrix.os }}) strategy: matrix: From 775a7ad39f031c165bad192e114df22d505ad7f9 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 1 Aug 2024 14:43:19 +0900 Subject: [PATCH 2/2] Fixed build failure of macos-latest --- .github/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5da29e4..1764c6e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,14 +6,15 @@ jobs: ruby-versions: uses: ruby/actions/.github/workflows/ruby_versions.yml@master with: - min_version: 2.5 + engine: cruby-truffleruby + min_version: 2.3 test: needs: ruby-versions name: build (${{ matrix.ruby }} / ${{ matrix.os }}) strategy: matrix: - ruby: [ '3.0', 2.7, 2.6, 2.5, 2.4, 2.3, head, truffleruby-head ] - os: [ ubuntu-latest, macos-latest ] + ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} + os: [ ubuntu-latest, macos-13 ] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4