Commit 5d617bd
Match the build workflow's Ruby setup in release.yml
The previous attempt kept bundler-cache: true in release.yml and
relied on Bundler.with_unbundled_env to unbundle the child rake. That
also reverted GEM_PATH to its pre-Bundler value, so freetype (only
installed in vendor/bundle) disappeared from the PicoRuby sub-build's
load path and ttf2c.rb failed with "cannot load such file -- freetype".
Follow the working build.yml pattern instead: drop bundler-cache and
install rake / freetype into the system gem path with `gem install`.
The child rake then finds both via the default Gem.path with no
bundler env to inherit in the first place.
Make `require "bundler/setup"` optional in the Rakefile and guard
sh_unbundled with `defined?(Bundler)` so the same Rakefile works for
local `bundle exec rake` and for CI's gem-install setup.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e935352 commit 5d617bd
2 files changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
2 | 9 | | |
3 | 10 | | |
4 | 11 | | |
| |||
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
21 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
22 | 33 | | |
23 | 34 | | |
24 | 35 | | |
| |||
0 commit comments