Skip to content

Commit

Permalink
update ci_scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ry-itto committed Sep 7, 2024
1 parent f6b08f4 commit c839267
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app-ios/App/ci_scripts/ci_post_clone.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/zsh

cd "$CI_WORKSPACE"
cd "$CI_PRIMARY_REPOSITORY_PATH"

brew install openjdk@17

export PATH="/usr/local/opt/openjdk@17/bin:$PATH"

./gradlew :app-ios-shared:assembleSharedReleaseXCFramework
./gradlew app-ios-shared:assembleSharedDebugXCFramework -Papp.ios.shared.arch=arm64 --no-configuration-cache
16 changes: 9 additions & 7 deletions app-ios/App/ci_scripts/ci_pre_xcodebuild.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
#!/bin/sh

cd "$CI_WORKSPACE"
cd "$CI_PRIMARY_REPOSITORY_PATH"

# Enalbe skip plugin validation
defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES

SOURCE_PACKAGES_PATH="$CI_PRIMARY_REPOSITORY_PATH/app-ios/SourcePackages"
xcodebuild -resolvePackageDependencies -project $CI_PROJECT_FILE_PATH -scheme DroidKaigi2024App -derivedDataPath $CI_DERIVED_DATA_PATH -clonedSourcePackagesDirPath $SOURCE_PACKAGES_PATH

# workaround for xcode cloud
brew install mint

mint install cybozu/LicenseList
mint install SwiftGen/SwiftGen

SOURCE_PACKAGES_PATH="$CI_WORKSPACE/app-ios/SourcePackages"
xcodebuild -resolvePackageDependencies -project $CI_PROJECT_FILE_PATH -scheme DroidKaigi2024App -derivedDataPath $CI_DERIVED_DATA_PATH -clonedSourcePackagesDirPath $SOURCE_PACKAGES_PATH

mint run LicenseList "$CI_WORKSPACE/app-ios/Sources/About/Resources" $SOURCE_PACKAGES_PATH
mint run LicenseList "$CI_PRIMARY_REPOSITORY_PATH/app-ios/Sources/App/Resources" $SOURCE_PACKAGES_PATH

export DERIVED_SOURCES_DIR="$CI_WORKSPACE/app-ios/Sources/Theme/"
mint run SwiftGen --config "$CI_WORKSPACE/app-ios/Sources/Theme/swiftgen.yml"
# generate code
export DERIVED_SOURCES_DIR="$CI_PRIMARY_REPOSITORY_PATH/app-ios/Sources/Theme/"
mint run SwiftGen --config "$CI_PRIMARY_REPOSITORY_PATH/app-ios/Sources/Theme/swiftgen.yml"

0 comments on commit c839267

Please sign in to comment.