Skip to content

Commit 5e2ac6e

Browse files
committed
Temporary enable head version of rake-compiler-dock
... to fix C-ext rpath test case.
1 parent 70551b9 commit 5e2ac6e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/binary-gems.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
rcd_build:
2121
name: Build
2222
runs-on: ubuntu-latest
23+
env:
24+
RCD_IMAGE_VERSION: snapshot
2325
strategy:
2426
fail-fast: false
2527
matrix:

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ end
1313
group :test do
1414
gem "bundler", ">= 1.16", "< 3.0"
1515
gem "rake-compiler", "~> 1.0"
16-
gem "rake-compiler-dock", "~> 1.9.1"
16+
gem "rake-compiler-dock", "~> 1.9.1", git: "https://github.com/rake-compiler/rake-compiler-dock"
1717
gem "rspec", "~> 3.5"
1818
# "bigdecimal" is a gem on ruby-3.4+ and it's optional for ruby-pg.
1919
# Specs should succeed without it, but 4 examples are then excluded.

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Rake::ExtensionTask.new do |ext|
7474
# Activate current cross compiled platform only.
7575
# This is to work around the issue that `linux` platform is selected in `linux-musl` image.
7676
ext.cross_platform = CrossLibraries.map(&:platform).select do |pl|
77-
m = ENV["RCD_IMAGE"]&.match(/:(?<ruby_ver>[\d\.]+)-mri-(?<platform>[-\w]+)$/)
77+
m = ENV["RCD_IMAGE"]&.match(/:(?<ruby_ver>[\w\.]+)-mri-(?<platform>[-\w]+)$/)
7878
m && m[:platform] == pl
7979
end
8080

@@ -106,7 +106,7 @@ task 'gem:native:prepare' do
106106
# Copy gem signing key and certs to be accessible from the docker container
107107
mkdir_p 'build/gem'
108108
sh "cp ~/.gem/gem-*.pem build/gem/ || true"
109-
sh "bundle package"
109+
sh "bundle package --all"
110110
begin
111111
OpenSSL::PKey.read(File.read(File.expand_path("~/.gem/gem-private_key.pem")), ENV["GEM_PRIVATE_KEY_PASSPHRASE"] || "")
112112
rescue OpenSSL::PKey::PKeyError

0 commit comments

Comments
 (0)