mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
prepare CI for iOS
This commit is contained in:
parent
8dcd3146e7
commit
d3e33b096f
8
.github/workflows/github.yml
vendored
8
.github/workflows/github.yml
vendored
@ -90,6 +90,12 @@ jobs:
|
|||||||
preset: macos-arm-conan-ninja-release
|
preset: macos-arm-conan-ninja-release
|
||||||
conan_profile: macos-arm
|
conan_profile: macos-arm
|
||||||
artifact_platform: arm
|
artifact_platform: arm
|
||||||
|
- platform: ios
|
||||||
|
os: macos-12
|
||||||
|
test: 0
|
||||||
|
pack: 1
|
||||||
|
extension: ipa
|
||||||
|
preset: ios-release
|
||||||
- platform: mxe
|
- platform: mxe
|
||||||
os: ubuntu-20.04
|
os: ubuntu-20.04
|
||||||
mxe: i686-w64-mingw32.shared
|
mxe: i686-w64-mingw32.shared
|
||||||
@ -189,6 +195,8 @@ jobs:
|
|||||||
cd '${{github.workspace}}/out/build/${{matrix.preset}}'
|
cd '${{github.workspace}}/out/build/${{matrix.preset}}'
|
||||||
CPACK_PATH=`which -a cpack | grep -m1 -v -i chocolatey`
|
CPACK_PATH=`which -a cpack | grep -m1 -v -i chocolatey`
|
||||||
"$CPACK_PATH" -C ${{env.BUILD_TYPE}} ${{ matrix.cpack_args }}
|
"$CPACK_PATH" -C ${{env.BUILD_TYPE}} ${{ matrix.cpack_args }}
|
||||||
|
test -f '${{github.workspace}}/CI/${{matrix.platform}}/post_pack.sh' \
|
||||||
|
&& '${{github.workspace}}/CI/${{matrix.platform}}/post_pack.sh' '${{github.workspace}}' "$(ls '${{ env.VCMI_PACKAGE_FILE_NAME }}'.*)"
|
||||||
rm -rf _CPack_Packages
|
rm -rf _CPack_Packages
|
||||||
|
|
||||||
- name: Additional logs
|
- name: Additional logs
|
||||||
|
7
CI/ios/before_install.sh
Executable file
7
CI/ios/before_install.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
echo DEVELOPER_DIR=/Applications/Xcode_13.4.1.app >> $GITHUB_ENV
|
||||||
|
|
||||||
|
curl -L 'https://github.com/kambala-decapitator/vcmi-ios-depends/releases/latest/download/vcmi-ios-depends-xc13.2.1.txz' \
|
||||||
|
| tar -xf -
|
||||||
|
build/fix_install_paths.command
|
3
CI/ios/post_pack.sh
Executable file
3
CI/ios/post_pack.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
"$1/ios/zip2ipa.sh" "$2"
|
@ -132,7 +132,7 @@
|
|||||||
],
|
],
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"BUNDLE_IDENTIFIER_PREFIX": "eu.vcmi",
|
"BUNDLE_IDENTIFIER_PREFIX": "eu.vcmi",
|
||||||
"CMAKE_PREFIX_PATH": "TODO"
|
"CMAKE_PREFIX_PATH": "${sourceDir}/build/iphoneos"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -187,11 +187,11 @@
|
|||||||
"name": "ios-release",
|
"name": "ios-release",
|
||||||
"configurePreset": "ios-release",
|
"configurePreset": "ios-release",
|
||||||
"inherits": "default-release",
|
"inherits": "default-release",
|
||||||
|
"configuration": "Release",
|
||||||
"targets": ["vcmiclient"],
|
"targets": ["vcmiclient"],
|
||||||
"nativeToolOptions": [
|
"nativeToolOptions": [
|
||||||
"-quiet",
|
"-quiet",
|
||||||
"CODE_SIGNING_ALLOWED_FOR_APPS=NO",
|
"CODE_SIGNING_ALLOWED_FOR_APPS=NO"
|
||||||
"GCC_OPTIMIZATION_LEVEL=3"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user