-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |