備忘録
github pages を公開したく、jekyllでビルドするgithub action で下記エラーが発生した場合に解消できた手順を記す。
The process '/opt/hostedtoolcache/Ruby/3.2.2/x64/bin/bundle' failed with exit code 16
他の解決策で2番目と3番目が入れ替わって説明しているものがあったがそれでは解決しなかった。下記手順でビルドとデプロイが成功した。依存関係を削除[rm]して、作り直して[install]、それからプラットフォームを追加する。
$ rm Gemfile.lock
$ bundle install
$ bundle lock --add-platform x86_86-linux
更新したGemfileをコミットする。
git add Gemfile.lock
git commit -m "Gemfile.lock再作成"
git push origin main
Github Actionが実行されて成功のチェックマークが表示された。
6時間くらい悩んだ。Copilotありがとう。