From 42832a9af6e06680340ed8e6215295e385770681 Mon Sep 17 00:00:00 2001 From: Erick Guan <297343+erickguan@users.noreply.github.com> Date: Fri, 5 Jul 2024 20:15:56 +0200 Subject: [PATCH] Test a few more platforms and update metadata --- .github/workflows/tests.yml | 28 +++++++++++++++++++++------- .ruby-version | 2 +- ffi-icu.gemspec | 7 ++++--- 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 05ffd1b..8c24198 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,9 +2,6 @@ name: Tests on: pull_request: - push: - branches: - - master permissions: contents: read @@ -16,15 +13,32 @@ jobs: # test a range of Ruby to ensure gem works # keep ruby until EOL. Read more on https://endoflife.date/ruby ruby-version: - - '3.0' - '3.1' - '3.2' - '3.3' - - head - # test distributions up to 4 years runner: - ubuntu-22.04 - - ubuntu-20.04 + include: + # test distributions up to 4 years + - runner: ubuntu-20.04 + ruby-version: '3.3' + - runner: ubuntu-24.04 + ruby-version: '3.3' + + # test latest ruby + - runner: ubuntu-24.04 + ruby-version: head + + # test other platforms + - runner: windows-2022 + ruby-version: '3.3' + + - runner: macos-13 + ruby-version: '3.3' + + - runner: macos-14 + ruby-version: '3.3' + fail-fast: false # allow contributors understand failure builds runs-on: ${{ matrix.runner }} diff --git a/.ruby-version b/.ruby-version index b347b11..619b537 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.2.3 +3.3.3 diff --git a/ffi-icu.gemspec b/ffi-icu.gemspec index 7f53272..c757884 100644 --- a/ffi-icu.gemspec +++ b/ffi-icu.gemspec @@ -6,11 +6,12 @@ Gem::Specification.new do |spec| spec.platform = Gem::Platform::RUBY # rely on FFI library, but being platform-independent spec.required_rubygems_version = Gem::Requirement.new('>= 2.5.0') - spec.authors = ['Jari Bakken'] + spec.authors = ['Erick Guan', 'Damian Nelson'] spec.licenses = ['MIT'] spec.summary = 'Simple Ruby FFI wrappers for International Components for Unicode (ICU).' - spec.description = 'Provides charset detection, locale sensitive collation and more. Depends on libicu.' - spec.email = 'jari.bakken@gmail.com' + spec.description = 'Provides charset detection, transiliteration, locale sensitive collation and more. ' \ + 'Depends on libicu. ICU operates on CLDR data.' + spec.email = 'erickguanst@gmail.com' spec.homepage = 'https://github.com/erickguan/ffi-icu' spec.metadata['source_code_uri'] = spec.homepage