Skip to content

Commit

Permalink
Try a faster install of node and cocoapods
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw committed Jan 2, 2024
1 parent 67b3932 commit 2d82734
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions native_gg/ios/ci_scripts/ci_post_clone.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,33 @@
# Created by NigelBreslaw on 2.1.2024.
#

pushd ..

echo ">>> SETUP ENVIRONMENT"
echo 'export GEM_HOME=$HOME/gems' >>~/.bash_profile
echo 'export PATH=$HOME/gems/bin:$PATH' >>~/.bash_profile
export GEM_HOME=$HOME/gems
export PATH="$GEM_HOME/bin:$PATH"

echo ">>> INSTALL BUNDLER"
gem install bundler --install-dir $GEM_HOME

echo "============> Installing Node <============"
brew install node@20
curl "https://nodejs.org/dist/v20.10.0/node-v20.10.0-darwin-arm64.tar.gz" -o $HOME/Downloads/node.tar.gz
tar -xf "$HOME/Downloads/node.tar.gz"
NODE_PATH="$PWD/node-$VERSION-darwin-$ARCH/bin"
PATH+=":$NODE_PATH"
export PATH
node -v
npm -v

echo "============> Linking Node <============"
brew link node@20
popd

echo "=========> Installing cocoapods"
brew install cocoapods && bundle update --bundler

echo "=======> Installing PNPM"
npm install -g [email protected]


echo "=====> Moving to build directory"
cd native_gg

Expand Down

0 comments on commit 2d82734

Please sign in to comment.