chore: add Xcode Cloud scripts

This commit is contained in:
CMK 2022-07-15 11:35:36 +08:00
parent 78b2259b8f
commit 5a815cb03b
2 changed files with 33 additions and 1 deletions

View File

@ -5,7 +5,6 @@
// Created by MainasuK Cirno on 2021-4-27.
//
import Foundation
import CryptoKit
import KeychainAccess

33
ci_scripts/ci_post_clone.sh Executable file
View File

@ -0,0 +1,33 @@
#!/bin/zsh
# Xcode Cloud scripts
set -xeu
set -o pipefail
# list hardware
system_profiler SPSoftwareDataType SPHardwareDataType
echo $PWD
cd $CI_WORKSPACE
echo $PWD
# install rbenv
brew install rbenv
which ruby
echo 'eval "$(rbenv init -)"' >> ~/.zprofile
source ~/.zprofile
which ruby
rbenv install 3.0.3
rbenv global 3.0.3
ruby --version
# install bundle gem
gem install bundler
# setup gems
bundle install
bundle exec arkana
bundle exec pod install