mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-02 00:10:22 +02:00
[CI] build iOS with Conan
This commit is contained in:
parent
73b0b7c8a3
commit
524ad5ab76
3
.github/workflows/github.yml
vendored
3
.github/workflows/github.yml
vendored
@ -95,7 +95,8 @@ jobs:
|
|||||||
test: 0
|
test: 0
|
||||||
pack: 1
|
pack: 1
|
||||||
extension: ipa
|
extension: ipa
|
||||||
preset: ios-release
|
preset: ios-release-conan
|
||||||
|
conan_profile: ios-arm64
|
||||||
- platform: mxe
|
- platform: mxe
|
||||||
os: ubuntu-20.04
|
os: ubuntu-20.04
|
||||||
mxe: i686-w64-mingw32.shared
|
mxe: i686-w64-mingw32.shared
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
echo DEVELOPER_DIR=/Applications/Xcode_13.4.1.app >> $GITHUB_ENV
|
echo DEVELOPER_DIR=/Applications/Xcode_13.4.1.app >> $GITHUB_ENV
|
||||||
|
|
||||||
curl -L 'https://github.com/vcmi/vcmi-ios-deps/releases/latest/download/vcmi-ios-depends-xc13.2.1.txz' \
|
mkdir ~/.conan ; cd ~/.conan
|
||||||
|
curl -L 'https://github.com/vcmi/vcmi-ios-deps/releases/download/1.1/ios-arm64.xz' \
|
||||||
| tar -xf -
|
| tar -xf -
|
||||||
build/fix_install_paths.command
|
|
||||||
|
@ -6,6 +6,14 @@
|
|||||||
"hidden": true,
|
"hidden": true,
|
||||||
"binaryDir": "${sourceDir}/out/build/${presetName}"
|
"binaryDir": "${sourceDir}/out/build/${presetName}"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "build-with-conan",
|
||||||
|
"hidden": true,
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/conan-generated/conan_toolchain.cmake",
|
||||||
|
"FORCE_BUNDLED_MINIZIP": "OFF"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "base-release",
|
"name": "base-release",
|
||||||
"inherits": "release-binary-dir",
|
"inherits": "release-binary-dir",
|
||||||
@ -81,9 +89,11 @@
|
|||||||
"name": "macos-conan-ninja-release",
|
"name": "macos-conan-ninja-release",
|
||||||
"displayName": "Ninja+Conan release",
|
"displayName": "Ninja+Conan release",
|
||||||
"description": "VCMI MacOS Ninja using Conan",
|
"description": "VCMI MacOS Ninja using Conan",
|
||||||
"inherits": "default-release",
|
"inherits": [
|
||||||
|
"build-with-conan",
|
||||||
|
"default-release"
|
||||||
|
],
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/conan-generated/conan_toolchain.cmake",
|
|
||||||
"CMAKE_BUILD_TYPE": "Release"
|
"CMAKE_BUILD_TYPE": "Release"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -122,16 +132,42 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ios-release",
|
"name": "ios-device-conan",
|
||||||
"displayName": "iOS release",
|
"displayName": "Base iOS device using Conan",
|
||||||
"description": "VCMI iOS release",
|
"description": "Base VCMI preset for iOS device using Conan",
|
||||||
"inherits": [
|
"inherits": [
|
||||||
"base-release",
|
"build-with-conan",
|
||||||
"ios-device",
|
"ios-device"
|
||||||
"release-binary-dir"
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "base-ios-release",
|
||||||
|
"displayName": "Base iOS release",
|
||||||
|
"description": "Base VCMI preset for iOS release",
|
||||||
|
"inherits": "base-release",
|
||||||
|
"hidden": true,
|
||||||
|
"cacheVariables": {
|
||||||
|
"BUNDLE_IDENTIFIER_PREFIX": "eu.vcmi"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ios-release-conan",
|
||||||
|
"displayName": "iOS+Conan release",
|
||||||
|
"description": "VCMI iOS release using Conan",
|
||||||
|
"inherits": [
|
||||||
|
"base-ios-release",
|
||||||
|
"ios-device-conan"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ios-release-legacy",
|
||||||
|
"displayName": "iOS release using legacy dependencies",
|
||||||
|
"description": "VCMI iOS release using legacy dependencies",
|
||||||
|
"inherits": [
|
||||||
|
"base-ios-release",
|
||||||
|
"ios-device"
|
||||||
],
|
],
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"BUNDLE_IDENTIFIER_PREFIX": "eu.vcmi",
|
|
||||||
"CMAKE_PREFIX_PATH": "${sourceDir}/build/iphoneos"
|
"CMAKE_PREFIX_PATH": "${sourceDir}/build/iphoneos"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -184,14 +220,19 @@
|
|||||||
"inherits": "default-release"
|
"inherits": "default-release"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ios-release",
|
"name": "ios-release-conan",
|
||||||
"configurePreset": "ios-release",
|
"configurePreset": "ios-release-conan",
|
||||||
"inherits": "default-release",
|
"inherits": "default-release",
|
||||||
"configuration": "Release",
|
"configuration": "Release",
|
||||||
"targets": ["vcmiclient"],
|
"targets": ["vcmiclient"],
|
||||||
"nativeToolOptions": [
|
"nativeToolOptions": [
|
||||||
"CODE_SIGNING_ALLOWED_FOR_APPS=NO"
|
"CODE_SIGNING_ALLOWED_FOR_APPS=NO"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ios-release-legacy",
|
||||||
|
"configurePreset": "ios-release-legacy",
|
||||||
|
"inherits": "ios-release-conan"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"testPresets": [
|
"testPresets": [
|
||||||
|
Loading…
Reference in New Issue
Block a user