事象
- MacでlocalのRailsを動かしていた
- githubActionでubuntuの実行環境でCIを実行したかった
- bundle installの際に
Your bundle only supports platforms ["x86_64-darwin-19"] but your local platform is x86_64-linux
と言われる
bundle lock --add-platform x86_64-linux
してねって言われる
4s
Run ruby/setup-ruby@v1.71.0
Installing Bundler
bundle install
/opt/hostedtoolcache/Ruby/3.0.1/x64/bin/bundle config --local path /home/runner/work/telpay/telpay/vendor/bundle
/opt/hostedtoolcache/Ruby/3.0.1/x64/bin/bundle config --local deployment true
Cache key: setup-ruby-bundler-cache-v3-ubuntu-18.04-ruby-3.0.1-Gemfile.lock-1bec2a8434e23d7af956d5debdeb907f064e4ce098d3207562299dd550707b10
/opt/hostedtoolcache/Ruby/3.0.1/x64/bin/bundle install --jobs 4
Your bundle only supports platforms ["x86_64-darwin-19"] but your local platform
is x86_64-linux. Add the current platform to the lockfile with `bundle lock
--add-platform x86_64-linux` and try again.
Took 0.73 seconds
Error: The process '/opt/hostedtoolcache/Ruby/3.0.1/x64/bin/bundle' failed with exit code 16
対応
bundle lock --add-platform x86_64-linux
して再度commit
- 通った