Skip to content

Commit

Permalink
Working post clone script for Xcode cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw authored Jan 2, 2024
1 parent 8a0ec73 commit 3ac4c99
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
8 changes: 5 additions & 3 deletions native_gg/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ GEM
specs:
CFPropertyList (3.0.6)
rexml
activesupport (7.0.8)
activesupport (6.1.7.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
algoliasearch (1.27.5)
Expand Down Expand Up @@ -84,6 +85,7 @@ GEM
colored2 (~> 3.1)
nanaimo (~> 0.3.0)
rexml (~> 3.2.4)
zeitwerk (2.6.12)

PLATFORMS
ruby
Expand All @@ -93,7 +95,7 @@ DEPENDENCIES
cocoapods (~> 1.13)

RUBY VERSION
ruby 3.3.0p0
ruby 2.6.10p210

BUNDLED WITH
2.5.3
1.17.2
2 changes: 1 addition & 1 deletion native_gg/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ SPEC CHECKSUMS:
React-utils: debda2c206770ee2785bdebb7f16d8db9f18838a
ReactCommon: ddb128564dcbfa0287d3d1a2d10f8c7457c971f6
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
Yoga: 4f53dc50008d626fa679c7a1cb4bed898f8c0bde
Yoga: 2b33a7ac96c58cdaa7b810948fc6a2a76ed2d108

PODFILE CHECKSUM: ce1f1e1a0af742a3dbfdffa2b69c3a0623238049

Expand Down
28 changes: 22 additions & 6 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,17 +6,33 @@
# Created by NigelBreslaw on 2.1.2024.
#

echo "============> Installing NVM <============"
brew install nvm

echo "============> Installing Node <============"
nvm install 20.10.0
arch
node_version=20.10.0

if [ "$ARCHITECTURE" == "arm64" ]; then
# For arm64 architecture (Apple Silicon)
arch=arm64
else
# For x86 architecture
arch=x64
fi

echo "=========> Installing cocoapods"
echo "============> Installing Node <============"
curl "https://nodejs.org/dist/v$node_version/node-v$node_version-darwin-$arch.tar.gz" -o $HOME/Downloads/node.tar.gz
tar -xf "$HOME/Downloads/node.tar.gz"
NODE_PATH="$PWD/node-v$node_version-darwin-$arch/bin"
PATH+=":$NODE_PATH"
export PATH
node -v
npm -v

echo "============> Installing cocoapods <============"
brew install cocoapods

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


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

0 comments on commit 3ac4c99

Please sign in to comment.