From 5a815cb03b714474cc02d803e5bc89366bbb294e Mon Sep 17 00:00:00 2001 From: CMK Date: Fri, 15 Jul 2022 11:35:36 +0800 Subject: [PATCH] chore: add Xcode Cloud scripts --- AppShared/AppSecret.swift | 1 - ci_scripts/ci_post_clone.sh | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100755 ci_scripts/ci_post_clone.sh diff --git a/AppShared/AppSecret.swift b/AppShared/AppSecret.swift index 45c2e3546..8af5e14f4 100644 --- a/AppShared/AppSecret.swift +++ b/AppShared/AppSecret.swift @@ -5,7 +5,6 @@ // Created by MainasuK Cirno on 2021-4-27. // - import Foundation import CryptoKit import KeychainAccess diff --git a/ci_scripts/ci_post_clone.sh b/ci_scripts/ci_post_clone.sh new file mode 100755 index 000000000..89cd36138 --- /dev/null +++ b/ci_scripts/ci_post_clone.sh @@ -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