Improve core static build release (#3465)

This commit is contained in:
Bart Louwers
2025-05-14 23:04:05 +02:00
committed by GitHub
parent 8a81444c43
commit b29e22a7f9
3 changed files with 13 additions and 6 deletions

View File

@@ -12,9 +12,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create maplibre-native-headers.tar.gz
run: tar czf maplibre-native-headers.tar.gz include
with:
submodules: recursive
- name: Create maplibre-native-headers.tar.gz
run: tar czf maplibre-native-headers.tar.gz \
include \
vendor/maplibre-native-base/deps/variant/include \
vendor/maplibre-native-base/deps/geometry.hpp/include
- name: Create Release
run: |
gh release create core-${{ github.sha }} \
@@ -22,7 +27,7 @@ jobs:
--prerelease=false \
--latest=false \
--title "core-${{ github.sha }}" \
maplibre-native-headers.tar.gz
maplibre-native-headers.tar.gz LICENSE.core.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -107,7 +107,8 @@
"name": "linux-opengl-core",
"inherits": "linux-opengl",
"cacheVariables": {
"MLN_CORE_INCLUDE_DEPS": "ON"
"MLN_CORE_INCLUDE_DEPS": "ON",
"MLN_USE_BUILTIN_ICU": "ON"
}
},
{
@@ -124,7 +125,8 @@
"name": "linux-vulkan-core",
"inherits": "linux-vulkan",
"cacheVariables": {
"MLN_CORE_INCLUDE_DEPS": "ON"
"MLN_CORE_INCLUDE_DEPS": "ON",
"MLN_USE_BUILTIN_ICU": "ON"
}
}
],

View File

@@ -2,7 +2,7 @@ if(TARGET mbgl-vendor-nunicode)
return()
endif()
if(MLN_WITH_QT)
if(MLN_WITH_QT OR MLN_CORE_INCLUDE_DEPS)
add_library(mbgl-vendor-nunicode OBJECT)
else()
add_library(mbgl-vendor-nunicode STATIC)