Skip to content

Commit 4609b72

Browse files
authored
Merge pull request #595 from sparklemotion/flavorjones-dep-rcd-1.7.0.rc1
ext: update rake-compiler-dock to 1.7.0.rc1 and add ruby 3.4
2 parents a4e81ee + dac3f71 commit 4609b72

File tree

4 files changed

+26
-24
lines changed

4 files changed

+26
-24
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ on:
1818
- '*'
1919

2020
jobs:
21+
ruby_versions:
22+
outputs:
23+
setup_ruby: "['3.1', '3.2', '3.3', 'head']"
24+
image_tag: "['3.1', '3.2', '3.3', '3.4-rc']"
25+
runs-on: ubuntu-latest
26+
steps:
27+
- run: echo "generating rubies ..."
28+
2129
#
2230
# basic tests
2331
#
@@ -45,12 +53,12 @@ jobs:
4553
- run: bundle exec rake test
4654

4755
test:
48-
needs: basic
56+
needs: [basic, ruby_versions]
4957
strategy:
5058
fail-fast: false
5159
matrix:
5260
os: [ubuntu, macos, windows]
53-
ruby: ["3.3", "3.2", "3.1"]
61+
ruby: ${{ fromJSON(needs.ruby_versions.outputs.setup_ruby) }}
5462
syslib: [enable, disable]
5563
include:
5664
# additional compilation flags for homebrew
@@ -117,12 +125,12 @@ jobs:
117125
bundle exec rake test
118126
119127
sqlcipher:
120-
needs: basic
128+
needs: [basic, ruby_versions]
121129
strategy:
122130
fail-fast: false
123131
matrix:
124132
os: [ubuntu, macos, windows]
125-
ruby: ["3.3", "3.1"] # oldest and newest
133+
ruby: ${{ fromJSON(needs.ruby_versions.outputs.setup_ruby) }}
126134
include:
127135
- { os: windows, ruby: mingw }
128136
- { os: windows, ruby: mswin }
@@ -207,13 +215,13 @@ jobs:
207215
retention-days: 1
208216

209217
install_source_linux:
210-
needs: build_source_gem
218+
needs: [build_source_gem, ruby_versions]
211219
name: "test source"
212220
strategy:
213221
fail-fast: false
214222
matrix:
215223
os: [ubuntu, macos, windows]
216-
ruby: ["3.3", "3.2", "3.1"]
224+
ruby: ${{ fromJSON(needs.ruby_versions.outputs.setup_ruby) }}
217225
syslib: [enable, disable]
218226
include:
219227
# additional compilation flags for homebrew
@@ -270,7 +278,7 @@ jobs:
270278

271279
test_architecture_matrix:
272280
name: "${{ matrix.platform }} ${{ matrix.ruby }}"
273-
needs: build_native_gem
281+
needs: [build_native_gem, ruby_versions]
274282
strategy:
275283
fail-fast: false
276284
matrix:
@@ -283,7 +291,7 @@ jobs:
283291
- x86-linux-musl
284292
- x86_64-linux-gnu
285293
- x86_64-linux-musl
286-
ruby: ["3.3", "3.2", "3.1"]
294+
ruby: ${{ fromJSON(needs.ruby_versions.outputs.image_tag) }}
287295
include:
288296
# declare docker image for each platform
289297
- { platform: aarch64-linux-musl, docker_tag: "-alpine", bootstrap: "apk add build-base &&" }
@@ -315,25 +323,18 @@ jobs:
315323
316324
test_the_rest:
317325
name: "${{ matrix.platform }} ${{ matrix.ruby }}"
318-
needs: build_native_gem
326+
needs: [build_native_gem, ruby_versions]
319327
strategy:
320328
fail-fast: false
321329
matrix:
322330
os: [windows-latest, macos-13, macos-14]
323-
ruby: ["3.3", "3.2", "3.1"]
331+
ruby: ${{ fromJSON(needs.ruby_versions.outputs.setup_ruby) }}
324332
include:
325333
- os: macos-13
326334
platform: x86_64-darwin
327335
- os: macos-14
328336
platform: arm64-darwin
329337
- os: windows-latest
330-
ruby: "3.1"
331-
platform: x64-mingw-ucrt
332-
- os: windows-latest
333-
ruby: "3.2"
334-
platform: x64-mingw-ucrt
335-
- os: windows-latest
336-
ruby: "3.3"
337338
platform: x64-mingw-ucrt
338339
runs-on: ${{ matrix.os }}
339340
steps:
@@ -360,6 +361,7 @@ jobs:
360361
- { ruby: "3.2", flavor: "alpine3.19" }
361362
- { ruby: "3.3", flavor: "alpine3.18" }
362363
- { ruby: "3.3", flavor: "alpine3.19" }
364+
- { ruby: "3.4-rc", flavor: "alpine" }
363365
runs-on: ubuntu-latest
364366
container:
365367
image: ruby:${{matrix.ruby}}-${{matrix.flavor}}

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ group :development do
66
gem "minitest", "5.25.4"
77

88
gem "rake-compiler", "1.2.8"
9-
gem "rake-compiler-dock", "1.5.2"
9+
gem "rake-compiler-dock", "1.7.0.rc1"
1010

1111
gem "ruby_memcheck", "3.0.0" if Gem::Platform.local.os == "linux"
1212

bin/test-gem-file-contents

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Minitest::Reporters.use!([Minitest::Reporters::SpecReporter.new])
6565

6666
puts "Testing '#{gemfile}' (#{gemspec.platform})"
6767
describe File.basename(gemfile) do
68-
let(:supported_ruby_versions) { ["3.1", "3.2", "3.3"] }
68+
let(:supported_ruby_versions) { ["3.1", "3.2", "3.3", "3.4"] }
6969

7070
describe "setup" do
7171
it "gemfile contains some files" do

rakelib/native.rake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ require "rake/extensiontask"
66
require "rake_compiler_dock"
77
require "yaml"
88

9-
cross_rubies = ["3.3.0", "3.2.0", "3.1.0"]
9+
cross_rubies = ["3.4.0", "3.3.5", "3.2.0", "3.1.0"]
1010
cross_platforms = [
1111
"aarch64-linux-gnu",
1212
"aarch64-linux-musl",
1313
"arm-linux-gnu",
1414
"arm-linux-musl",
15-
"arm64-darwin",
16-
"x64-mingw-ucrt",
1715
"x86-linux-gnu",
1816
"x86-linux-musl",
19-
"x86_64-darwin",
2017
"x86_64-linux-gnu",
21-
"x86_64-linux-musl"
18+
"x86_64-linux-musl",
19+
"arm64-darwin",
20+
"x86_64-darwin",
21+
"x64-mingw-ucrt"
2222
]
2323
ENV["RUBY_CC_VERSION"] = cross_rubies.join(":")
2424

0 commit comments

Comments
 (0)