chore: add Xcode Cloud scripts
This commit is contained in:
parent
78b2259b8f
commit
5a815cb03b
|
@ -5,7 +5,6 @@
|
||||||
// Created by MainasuK Cirno on 2021-4-27.
|
// Created by MainasuK Cirno on 2021-4-27.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import CryptoKit
|
import CryptoKit
|
||||||
import KeychainAccess
|
import KeychainAccess
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue