mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-02-02 02:16:50 +01:00
chore: do not use rbenv due to cannot grant sudo permission
This commit is contained in:
parent
507b5b412e
commit
af083cd013
@ -12,34 +12,8 @@ echo $PWD
|
|||||||
cd $CI_WORKSPACE
|
cd $CI_WORKSPACE
|
||||||
echo $PWD
|
echo $PWD
|
||||||
|
|
||||||
# install rbenv
|
# install ruby from homebrew
|
||||||
brew install rbenv
|
brew install ruby
|
||||||
which ruby
|
|
||||||
echo 'eval "$(rbenv init -)"' >> ~/.zprofile
|
|
||||||
source ~/.zprofile
|
|
||||||
which ruby
|
|
||||||
|
|
||||||
# by pass the openssl cannot build issue
|
|
||||||
# https://github.com/rbenv/ruby-build/discussions/1853#discussioncomment-2146106
|
|
||||||
|
|
||||||
# brew cleanup openssl@3.0
|
|
||||||
# brew uninstall openssl@3.0
|
|
||||||
# rm -rf /opt/homebrew/etc/openssl@3
|
|
||||||
|
|
||||||
brew install openssl@1.1
|
|
||||||
|
|
||||||
export PATH="/opt/homebrew/opt/openssl@1.1/bin:$PATH"
|
|
||||||
export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib"
|
|
||||||
export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
|
|
||||||
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@1.1/lib/pkgconfig"
|
|
||||||
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=/opt/homebrew/opt/openssl@1.1"
|
|
||||||
source ~/.zshrc
|
|
||||||
|
|
||||||
CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl@1.1` CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 3.0.3
|
|
||||||
|
|
||||||
# install ruby 3.0.3
|
|
||||||
# rbenv install 3.0.3
|
|
||||||
rbenv global 3.0.3
|
|
||||||
ruby --version
|
ruby --version
|
||||||
|
|
||||||
# install bundle gem
|
# install bundle gem
|
||||||
|
Loading…
x
Reference in New Issue
Block a user