32 lines
726 B
Groovy
32 lines
726 B
Groovy
import common.Build
|
|
import static common.Constants.strip
|
|
|
|
def j = new Build
|
|
(
|
|
name: 'iOS_IPA',
|
|
libraries: 'iOS',
|
|
label: 'iOS',
|
|
artifacts: 'build/*.ipa'
|
|
).generate(this)
|
|
|
|
|
|
j.with
|
|
{
|
|
steps
|
|
{
|
|
shell('security unlock-keychain ${KEYCHAIN_CREDENTIALS} ${HOME}/Library/Keychains/login.keychain')
|
|
|
|
shell(strip('''\
|
|
cd build;
|
|
cmake ../source
|
|
-DCMAKE_BUILD_TYPE=release
|
|
-DCMAKE_PREFIX_PATH=\${WORKSPACE}/libs/build/dist
|
|
-DCMAKE_TOOLCHAIN_FILE=../source/cmake/iOS.toolchain.cmake
|
|
-GXcode
|
|
'''))
|
|
|
|
shell('cd build; CC=${CC_IOS} xcodebuild -target install -configuration Release PROVISIONING_PROFILE=${PROVISIONING_PROFILE_DEBUG}')
|
|
shell('cd build; xcodebuild -target ipa -configuration Release')
|
|
}
|
|
}
|