From bcca7bea802b72a3defe458d2a3cdd929e325ad1 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 18 Feb 2023 15:49:56 +0900 Subject: [PATCH 1/5] Use appropriate name for build job --- .github/workflows/ubuntu.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index fb81e8fb..cd37d25d 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -1,4 +1,4 @@ -name: ubuntu +name: test concurrency: group: "${{github.workflow}}-${{github.ref}}" cancel-in-progress: true @@ -17,7 +17,7 @@ on: - cron: "0 8 * * 3" # At 08:00 on Wednesday # https://crontab.guru/#0_8_*_*_3 jobs: - build: + test: runs-on: ubuntu-latest strategy: fail-fast: false From 93dc5a54a6f2664fa44530ecd35900326342ae3e Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 18 Feb 2023 15:50:29 +0900 Subject: [PATCH 2/5] Use ruby/actions/.github/workflows/ruby_versions.yml@master --- .github/workflows/ubuntu.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index cd37d25d..ceaf9346 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -17,24 +17,17 @@ on: - cron: "0 8 * * 3" # At 08:00 on Wednesday # https://crontab.guru/#0_8_*_*_3 jobs: + ruby-versions: + uses: ruby/actions/.github/workflows/ruby_versions.yml@master + with: + min_version: 2.5 test: + needs: ruby-versions runs-on: ubuntu-latest strategy: fail-fast: false matrix: - ruby: - - "2.5" - - "2.6" - - "2.7" - - "3.0" - - "3.1" - - "3.2" - - "head" - - "jruby-9.2.21.0" - - "jruby-9.3.9.0" - - "jruby-head" - - "truffleruby-22.3.0" - - "truffleruby-head" + ruby: ${{fromJson(needs.ruby-versions.outputs.versions)}} steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 From ee2ec22c1f7a20885909e9f0c955c29ed3f4668b Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 18 Feb 2023 15:56:21 +0900 Subject: [PATCH 3/5] Try with macOS and Windows --- .github/workflows/ubuntu.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index ceaf9346..ff3519a9 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -23,11 +23,15 @@ jobs: min_version: 2.5 test: needs: ruby-versions - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: ruby: ${{fromJson(needs.ruby-versions.outputs.versions)}} + os: [ubuntu-latest, macos-latest, windows-latest] + exclude: + - {os: windows-latest, ruby: truffleruby-head} + - {os: windows-latest, ruby: truffleruby} steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 From 6a183ec4796fde887bcae0ae4c42820820ef04c5 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 18 Feb 2023 16:03:11 +0900 Subject: [PATCH 4/5] Exclude JRuby from Windows --- .github/workflows/ubuntu.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index ff3519a9..e041b6b8 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -32,6 +32,8 @@ jobs: exclude: - {os: windows-latest, ruby: truffleruby-head} - {os: windows-latest, ruby: truffleruby} + - {os: windows-latest, ruby: jruby-head} + - {os: windows-latest, ruby: jruby } steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 From 134de955ce0694e3fdf2c4e25e907a68a293434c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 18 Feb 2023 16:22:03 +0900 Subject: [PATCH 5/5] Exclude jruby, truffleruby and truffleruby-head with macOS --- .github/workflows/ubuntu.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index e041b6b8..24c811cf 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -34,6 +34,9 @@ jobs: - {os: windows-latest, ruby: truffleruby} - {os: windows-latest, ruby: jruby-head} - {os: windows-latest, ruby: jruby } + - {os: macos-latest, ruby: truffleruby } + - {os: macos-latest, ruby: truffleruby-head } + - {os: macos-latest, ruby: jruby } steps: - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1