Commit 563ea37e authored by Daniele Rossetti's avatar Daniele Rossetti
Browse files

fix: update Rakefile build to fix native gem builds

parent e0668ad3
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -67,7 +67,12 @@ namespace 'gem' do
    task plat => 'prepare' do
      ENV["RCD_IMAGE"] = "rbsys/#{plat}:#{RbSys::VERSION}"

      RakeCompilerDock.sh <<~SH, platform: plat
      RakeCompilerDock.sh <<~SH, platform: plat, mountdir: File.expand_path('..'), workdir: File.expand_path('..')
        # Use the rbsys container's pre-installed toolchain (which includes
        # cross-compilation targets) instead of the version pinned in
        # rust-toolchain.toml that only supports the host architecture.
        export RUSTUP_TOOLCHAIN=stable && \
        cd glql_rb && \
        bundle && \
        RUBY_CC_VERSION="#{ruby_cc_version}" \
        bundle exec rake native:#{plat} pkg/#{gemspec.full_name}-#{plat}.gem