0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

github action で "exit code 16"の場合の解決手順

Posted at

備忘録

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が実行されて成功のチェックマークが表示された。
image.png

6時間くらい悩んだ。Copilotありがとう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?