From f30cf94ae0f31955889519bd352059c6cc38ec8a Mon Sep 17 00:00:00 2001 From: Vicente Eduardo Ferrer Garcia Date: Wed, 4 Sep 2024 00:49:16 +0200 Subject: [PATCH] Yeet. --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54d1e9b..ce42137 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,14 +108,15 @@ jobs: tar -xvzf ruby-with-python.tgz -C `pwd`/distributable DARWIN_VERSION=$(sw_vers -productVersion | cut -d '.' -f 1) if [ "$(uname -m)" = "arm64" ]; then - sudo mv `pwd`/distributable/opt/* /opt/ + sudo cp -R `pwd`/distributable/opt/homebrew/ /opt/homebrew/ INSTALL_DIR="/opt/homebrew" RUBY_PLATFORM_PAIR="arm64-darwin${DARWIN_VERSION}" else - sudo mv `pwd`/distributable/usr/local/* /usr/local/ + sudo cp -R `pwd`/distributable/usr/local/ /usr/local/ INSTALL_DIR="/usr/local" RUBY_PLATFORM_PAIR="x86_64-darwin${DARWIN_VERSION}" fi + rm -rf `pwd`/distributable export PATH="${INSTALL_DIR}/bin:$PATH" export RUBYLIB="${INSTALL_DIR}/lib/ruby/3.3.0:${INSTALL_DIR}/lib/ruby/3.3.0/${RUBY_PLATFORM_PAIR}" export GEM_PATH="${INSTALL_DIR}/lib/ruby/gems/3.3.0"