Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the vcpkg-enabled version of cesium-native. #1447

Merged
merged 127 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
c843346
Use the vcpkg-enabled version of cesium-native.
kring Jun 6, 2024
903bac0
Use libSearchPattern.
kring Jun 6, 2024
45c54d6
Add unmodified ktx port from the 2024.02.14 label of microsoft/vcpkg.
kring Jun 7, 2024
109d2c5
Add our patch to the ktx vcpkg port.
kring Jun 7, 2024
3c12468
Move some changes previously in cesium-native to cesium-unreal.
kring Jun 7, 2024
2b64650
Fix release build.
kring Jun 7, 2024
711e120
Update cesium-native.
kring Jun 7, 2024
e33a412
First crack at vcpkg / Android support.
kring Jun 7, 2024
6f2d53b
Cache vcpkg.
kring Jun 7, 2024
82dbba1
Better vcpkg cache key.
kring Jun 7, 2024
053417f
Fix variable usage in cache key.
kring Jun 7, 2024
a2e9cf8
Add zlib-ng port from 2024.02.14 tag in microsoft/vcpkg repo.
kring Jun 7, 2024
475c95a
Fix several problems with the Android build.
kring Jun 7, 2024
674cf4a
Add vcpkg caching to Android, and always save it.
kring Jun 7, 2024
860bb5b
Maybe make some progress toward working Android and iOS.
kring Jun 7, 2024
315010b
Temporarily disable most of the Android build.
kring Jun 7, 2024
26cf067
Better vcpkg cache warmup.
kring Jun 7, 2024
94e3375
Better cache key.
kring Jun 8, 2024
886882e
Restore full Android build.
kring Jun 8, 2024
8266b4c
Re-add MikkTSpace PrivateIncludePath for Android / iOS.
kring Jun 10, 2024
7789321
Fix Linux vcpkg build.
kring Jun 10, 2024
b1544af
Linux-AMD64 -> Linux-x86_64
kring Jun 10, 2024
cdac578
Update cesium-native.
kring Jun 10, 2024
87f6399
Hacky library rename, as an experiment.
kring Jun 11, 2024
e72c55d
Fix path in hack.
kring Jun 11, 2024
3114793
Use OpenSSL from Unreal Engine.
kring Jun 11, 2024
d568abd
Remove a hack.
kring Jun 11, 2024
29b59f4
Proper overlay port for Unreal OpenSSL.
kring Jun 11, 2024
b73f00c
Add OpenSSL paths for other platforms.
kring Jun 11, 2024
fdb6be6
Exclude libssl and libcrypto from CfUnreal build.
kring Jun 11, 2024
9737a61
Specify UNREAL_ENGINE_ROOT.
kring Jun 11, 2024
727cdd5
Fix Linux UE 5.3 / 5.4 build, hopefully.
kring Jun 11, 2024
16903c5
Cache vcpkg on Linux, macOS, and iOS.
kring Jun 11, 2024
770eff7
First attempt at vcpkg on macOS.
kring Jun 11, 2024
bc4ff80
Specify system name on macOS.
kring Jun 12, 2024
139777d
VCPKG_SYSTEM_NAME -> VCPKG_CMAKE_SYSTEM_NAME
kring Jun 12, 2024
4c5c548
Remove installation of msys2 during ktx build.
kring Jun 12, 2024
66a5848
UE OpenSSL paths on macOS / iOS.
kring Jun 12, 2024
1e5cf5c
Add asyncplusplus overlay port.
kring Jun 12, 2024
d5bb575
Use a version of Async++ with a required fix for C++20 support.
kring Jun 12, 2024
610bbdd
Fix typo.
kring Jun 12, 2024
0268d89
Better macOS CPU architecture selection.
kring Jun 12, 2024
f07c237
Better CPU arch selection, attempt universal (not optimistic).
kring Jun 12, 2024
6321d1c
Improve vcpkg caching on CI.
kring Jun 12, 2024
912eefd
Android triplet.
kring Jun 12, 2024
2a60eaa
Pass cache ID explicitly.
kring Jun 12, 2024
c81df69
Remove redundant restore-key.
kring Jun 12, 2024
b85c2ca
Flesh out android triplet.
kring Jun 12, 2024
9b1447e
libwebp inexplicably requires ANDROID_NDK to be set.
kring Jun 12, 2024
818199e
Maybe better without an explicit android toolchain.
kring Jun 12, 2024
8a83611
Update cesium-native.
kring Jun 12, 2024
c1e5fa4
Specify VCPKG_OSX_ARCHITECTURES in macOS triplets.
kring Jun 12, 2024
6b1e224
Specify UNREAL_ENGINE_ROOT on iOS.
kring Jun 12, 2024
f2c1701
Add arm64-ios-unreal triplet.
kring Jun 12, 2024
33acbc5
Set CMAKE_SYSTEM_PROCESSOR on macOS.
kring Jun 12, 2024
12a8723
Another go at robust VCPKG_TRIPLET detection logic.
kring Jun 12, 2024
bca5167
Use toolchain file on iOS, flesh out iOS triplet.
kring Jun 12, 2024
1cb60fc
Don't try to set properties on non-existent target.
kring Jun 12, 2024
b7a67b1
Specify CMAKE_SYSTEM_NAME=Darwin when building on macOS.
kring Jun 12, 2024
bf6da8e
Don't let ktx be a framework on iOS.
kring Jun 12, 2024
a01ff2f
More fixes for KTX build on iOS, build macOS to separate dirs.
kring Jun 13, 2024
3173f8e
Explicitly set CMAKE_SYSTEM_PROCESSOR in iOS toolchain.
kring Jun 13, 2024
60d373a
Use the lipo tool correctly.
kring Jun 13, 2024
25c88e1
Fix vcpkg cache path for non-Windows.
kring Jun 13, 2024
8321143
Don't try to lipo-together identical libraries.
kring Jun 13, 2024
7ef5e8f
Try again to fix the cache path.
kring Jun 13, 2024
2a358fa
Improve triplet organization.
kring Jun 13, 2024
6e80bd5
Merge remote-tracking branch 'origin/fix-warnings' into vcpkg
kring Jun 13, 2024
fd1625f
Add visibility-related flags to triplets.
kring Jun 13, 2024
35bc6ab
Invalidate vcpkg cache on triplet or toolchain changes.
kring Jun 14, 2024
0982821
Fix restore-key.
kring Jun 14, 2024
308a4cf
Set VCPKG_C_FLAGS on macOS.
kring Jun 14, 2024
40b6127
Merge remote-tracking branch 'origin/fix-warnings' into vcpkg
kring Jun 14, 2024
a7db660
Set IncludeOrderVersion, remove unnecessary precompiled header.
kring Jun 14, 2024
ce8334f
Use C++20 and swl::variant instead of std::variant.
kring Jun 14, 2024
f470d09
Fix compile problems on Android.
kring Jun 15, 2024
cc5640b
Fix swl-variant problem on Windows.
kring Jun 15, 2024
6e76d42
Specify VCPKG_PLATFORM_TOOLSET_VERSION=14.34 on Windows.
kring Jun 17, 2024
3590c0d
Merge remote-tracking branch 'origin/vcpkg' into vcpkg-swl
kring Jun 17, 2024
b6d7594
Update cesium-native.
kring Jun 18, 2024
14752f3
Update cesium-native.
kring Jun 18, 2024
6110ba1
Update cesium-native.
kring Jun 18, 2024
e3b342f
Store PropertyArrayCopy in variants.
kring Jun 19, 2024
e614d8b
Fix test failures caused by bad tests.
kring Jun 19, 2024
9ef66c2
View plus explicit storage for MetadataValue / PropertyArray
kring Jun 20, 2024
de4c5e0
Test build with origin swl-variant.
kring Jun 20, 2024
1751fc2
Run Apple builds on macos-13-arm64.
kring Jun 20, 2024
e8621c0
Combine macOS / iOS build jobs.
kring Jun 20, 2024
a35b935
Fix combine step dependencies.
kring Jun 20, 2024
6a3a716
Use macos-13 runner.
kring Jun 21, 2024
3ec0de5
Let's try macOS 14.
kring Jun 21, 2024
eed71cd
Only build vcpkg release on CI, build Intel+Apple on UE5.2
kring Jun 21, 2024
83415cb
Fix artifacts in combine steps.
kring Jun 21, 2024
b4d48ab
Exclude more stuff when extracting UE.
kring Jun 21, 2024
14a7e71
Another attempt at excluding files.
kring Jun 21, 2024
ef18e49
Remove previous attempt at listifying.
kring Jun 21, 2024
bd4d1c7
Exclude more stuff from the ZIP.
kring Jun 21, 2024
7afd807
Restore apparently-required TextToSpeech plugin.
kring Jun 21, 2024
532ec91
Only exclude some experimental plugins.
kring Jun 21, 2024
2690c7e
Restore non-experimental plugins for 5.2 and 5.3, too.
kring Jun 21, 2024
20622af
Delete reference to deleted AutomationScripts.
kring Jun 21, 2024
e234f09
Restore svn.
kring Jun 21, 2024
95951fb
Print brew inventory.
kring Jun 22, 2024
9c6c642
Restore oodle, remove google chrome.
kring Jun 22, 2024
9c4a1e3
Combine macOS / iOS plugin build steps.
kring Jun 22, 2024
cddd054
Re-add Python.
kring Jun 22, 2024
9d4ebae
Apparently in UE 5.4 we just can't remove any plugins at all.
kring Jun 22, 2024
b61cf60
Delete things.
kring Jun 22, 2024
86dc9b5
Remove the entire xcode 16 directory that might exist.
kring Jun 22, 2024
65ba91b
Don't compress debug sections.
kring Jun 23, 2024
4466573
Fix warnings in UE 5.4.
kring Jun 23, 2024
89719d0
Fix another UE 5.4 warning.
kring Jun 24, 2024
b668fca
Merge pull request #1455 from CesiumGS/vcpkg-swl
kring Jun 24, 2024
e620dba
Merge remote-tracking branch 'origin/main' into vcpkg
kring Jul 2, 2024
11e26aa
Only specify MSVC toolset version on CI.
kring Jul 22, 2024
d1f2fd6
Merge remote-tracking branch 'origin/main' into vcpkg
kring Jul 22, 2024
0605fa5
Add port overlay for sqlite3.
kring Jul 22, 2024
c83b36b
Isolate sqlite.
kring Jul 23, 2024
89eef57
Update cesium-native.
kring Jul 24, 2024
00a26bd
Fix find_package(OpenSSL).
kring Jul 25, 2024
e727ba0
Update cesium-native.
kring Aug 14, 2024
c09e998
Merge remote-tracking branch 'origin/main' into vcpkg
kring Aug 15, 2024
fc4ff10
Update cesium-native.
kring Aug 15, 2024
1dd7194
Exclude openssl from native installation, rather than from build.
kring Aug 16, 2024
b1e7bb1
Fix typo.
kring Aug 16, 2024
44a47ee
Update CHANGES.md.
kring Aug 16, 2024
349214a
Merge branch 'main' into vcpkg
kring Aug 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/install-unreal-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ runs:
shell: bash
run: |
df -h
unzip -q ue.zip "${{ inputs.unreal-program-name }}/Engine/*" -d $HOME -x "${{ inputs.unreal-program-name }}/Engine/Binaries/Mac/LiveLinkHub-Mac-Shipping.app/*" "${{ inputs.unreal-program-name }}/Engine/Binaries/Mac/Android/*" "${{ inputs.unreal-program-name }}/Engine/Binaries/Mac/UnrealGame.app/*" "${{ inputs.unreal-program-name }}/Engine/Binaries/Mac/UnrealGame-Mac-Shipping.app/*" "${{ inputs.unreal-program-name }}/Engine/Binaries/Mac/UnrealGame-Mac-DebugGame.app/*" "${{ inputs.unreal-program-name }}/Engine/Binaries/Mac/UnrealGame-Mac-DebugGame" "${{ inputs.unreal-program-name }}/Engine/Binaries/Mac/UnrealGame" "${{ inputs.unreal-program-name }}/Engine/Binaries/Mac/UnrealGame-Mac-Shipping" "${{ inputs.unreal-program-name }}/Engine/Binaries/Mac/*.dSYM"
unzip -q ue.zip "${{ inputs.unreal-program-name }}/Engine/*" -d $HOME -x $(cat "$GITHUB_WORKSPACE/.github/actions/install-unreal-macos/exclude-from-unzip.lst")
df -h
rm ue.zip
df -h
47 changes: 47 additions & 0 deletions .github/actions/install-unreal-macos/exclude-from-unzip.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
UE_5.2/Engine/Binaries/Mac/LiveLinkHub-Mac-Shipping.app/*
UE_5.2/Engine/Binaries/Mac/UnrealGame-Mac-DebugGame.app/*
UE_5.2/Engine/Binaries/Mac/UnrealGame.app/*
UE_5.2/Engine/Binaries/Mac/UnrealGame-Mac-Shipping.app/*
UE_5.2/Engine/Binaries/Mac/Android/*
UE_5.2/Engine/Binaries/Mac/UnrealGame-Mac-DebugGame
UE_5.2/Engine/Binaries/Mac/UnrealGame
UE_5.2/Engine/Binaries/Mac/UnrealGame-Mac-Shipping
UE_5.2/Engine/Binaries/Mac/*.dSYM
UE_5.2/Engine/Plugins/Experimental/NNERuntimeIREE/*
UE_5.2/Engine/Plugins/Experimental/Avalanche/*
UE_5.3/Engine/Binaries/Mac/LiveLinkHub-Mac-Shipping.app/*
UE_5.3/Engine/Binaries/Mac/UnrealGame-Mac-DebugGame.app/*
UE_5.3/Engine/Binaries/Mac/UnrealGame.app/*
UE_5.3/Engine/Binaries/Mac/UnrealGame-Mac-Shipping.app/*
UE_5.3/Engine/Binaries/Mac/Android/*
UE_5.3/Engine/Binaries/Mac/UnrealGame-Mac-DebugGame
UE_5.3/Engine/Binaries/Mac/UnrealGame
UE_5.3/Engine/Binaries/Mac/UnrealGame-Mac-Shipping
UE_5.3/Engine/Binaries/Mac/*.dSYM
UE_5.3/Engine/Plugins/Experimental/NNERuntimeIREE/*
UE_5.3/Engine/Plugins/Experimental/Avalanche/*
UE_5.4/Engine/Binaries/Mac/LiveLinkHub-Mac-Shipping.app/*
UE_5.4/Engine/Binaries/Mac/UnrealGame-Mac-DebugGame.app/*
UE_5.4/Engine/Binaries/Mac/UnrealGame.app/*
UE_5.4/Engine/Binaries/Mac/UnrealGame-Mac-Shipping.app/*
UE_5.4/Engine/Binaries/Mac/Android/*
UE_5.4/Engine/Binaries/Mac/ZenDashboard.app/*
UE_5.4/Engine/Binaries/Mac/UnrealEditorServices.app/*
UE_5.4/Engine/Binaries/Mac/UnrealEditor-Mac-DebugGame.app/*
UE_5.4/Engine/Binaries/Mac/UnrealGame-Mac-DebugGame
UE_5.4/Engine/Binaries/Mac/UnrealGame
UE_5.4/Engine/Binaries/Mac/UnrealGame-Mac-Shipping
UE_5.4/Engine/Binaries/ThirdParty/DotNet/6.0.302/mac-x64/*
UE_5.4/Engine/Binaries/ThirdParty/CEF3/*
UE_5.4/Engine/Binaries/DotNET/AutomationTool/AutomationScripts/Platforms/Windows/*
UE_5.4/Engine/Intermediate/ScriptModules/Win.Automation.json
UE_5.4/Engine/Binaries/DotNET/AutomationTool/AutomationScripts/Platforms/Android/*
UE_5.4/Engine/Intermediate/ScriptModules/Android.Automation.json
UE_5.4/Engine/Binaries/DotNET/AutomationTool/AutomationScripts/Platforms/Linux/*
UE_5.4/Engine/Intermediate/ScriptModules/Linux.Automation.json
UE_5.4/Engine/Binaries/DotNET/AutomationTool/AutomationScripts/Platforms/TVOS/*
UE_5.4/Engine/Intermediate/ScriptModules/TVOS.Automation.json
UE_5.4/Engine/Binaries/DotNET/AutomationTool/AutomationScripts/Platforms/SteamDeck/*
UE_5.4/Engine/Intermediate/ScriptModules/SteamDeck.Automation.json
UE_5.4/Engine/Binaries/DotNET/Android/*
*.dSYM
15 changes: 15 additions & 0 deletions .github/actions/vcpkg-cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Configure vcpkg caching
inputs:
id:
required: true
type: string
runs:
using: composite
steps:
- name: Cache vcpkg artifacts
uses: actions/cache@v4
with:
path: ${{ runner.os == 'Windows' && '/.ezvcpkg' || '~/.ezvcpkg' }}
key: vcpkg-${{ inputs.id }}-${{ hashFiles('extern/vcpkg-overlays/**/vcpkg.json', 'extern/vcpkg-overlays/triplets/**/*', 'extern/*toolchain.cmake') }}-${{ hashFiles('extern/cesium-native/CMakeLists.txt', 'extern/CMakeLists.txt') }}
restore-keys: |
vcpkg-${{ inputs.id }}-${{ hashFiles('extern/vcpkg-overlays/**/vcpkg.json', 'extern/vcpkg-overlays/triplets/**/*', 'extern/*toolchain.cmake') }}-
93 changes: 24 additions & 69 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,29 +75,19 @@ jobs:
unreal-program-name: "UE_5.2"
upload-package-base-name: "CesiumForUnreal-52-linux"
clang-version: "v21_clang-15.0.1-centos7"
macOS52:
uses: ./.github/workflows/buildMac.yml
Apple52:
uses: ./.github/workflows/buildApple.yml
secrets: inherit
with:
runner-label: macos-12
runner-label: macos-14
unreal-engine-version: "5.2.0"
unreal-engine-zip: "s3://cesium-unreal-engine/UE_52_macOS.zip"
unreal-program-name: "UE_5.2"
upload-package-base-name: "CesiumForUnreal-52-macos"
xcode-version: "14.2"
iOS52:
uses: ./.github/workflows/buildiOS.yml
secrets: inherit
with:
runner-label: macos-12
unreal-engine-version: "5.2.0"
unreal-engine-zip: "s3://cesium-unreal-engine/UE_52_macOS.zip"
unreal-program-name: "UE_5.2"
upload-package-base-name: "CesiumForUnreal-52-ios"
xcode-version: "14.2"
upload-package-base-name: "CesiumForUnreal-52-apple"
xcode-version: "14.3.1"
Combine52:
runs-on: ubuntu-latest
needs: [Windows52, Linux52, Android52, MacOS52, iOS52]
needs: [Windows52, Linux52, Android52, Apple52]
steps:
- name: Check out repository code
uses: actions/checkout@v4
Expand All @@ -110,15 +100,10 @@ jobs:
echo "CESIUM_UNREAL_VERSION=$CESIUM_UNREAL_VERSION" >> $GITHUB_ENV
echo "BUILD_CESIUM_UNREAL_PACKAGE_NAME=$BUILD_CESIUM_UNREAL_PACKAGE_NAME" >> $GITHUB_ENV
echo "BUILD_CESIUM_UNREAL_SOURCE_ONLY_PACKAGE_NAME=$BUILD_CESIUM_UNREAL_SOURCE_ONLY_PACKAGE_NAME" >> $GITHUB_ENV
- name: Download iOS build
uses: actions/download-artifact@v4
with:
name: CesiumForUnreal-52-ios-${{ env.CESIUM_UNREAL_VERSION}}
path: combine
- name: Download macOS build
- name: Download Apple build
uses: actions/download-artifact@v4
with:
name: CesiumForUnreal-52-macos-${{ env.CESIUM_UNREAL_VERSION}}
name: CesiumForUnreal-52-apple-${{ env.CESIUM_UNREAL_VERSION}}
path: combine
- name: Download Android build
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -208,29 +193,19 @@ jobs:
unreal-program-name: "UE_5.3"
upload-package-base-name: "CesiumForUnreal-53-linux"
clang-version: "v22_clang-16.0.6-centos7"
macOS53:
uses: ./.github/workflows/buildMac.yml
secrets: inherit
with:
runner-label: macos-12
unreal-engine-version: "5.3.0"
unreal-engine-zip: "s3://cesium-unreal-engine/5.3.0/UE_53_macOS.zip"
unreal-program-name: "UE_5.3"
upload-package-base-name: "CesiumForUnreal-53-macos"
xcode-version: "14.2"
iOS53:
uses: ./.github/workflows/buildiOS.yml
Apple53:
uses: ./.github/workflows/buildApple.yml
secrets: inherit
with:
runner-label: macos-12
runner-label: macos-14
unreal-engine-version: "5.3.0"
unreal-engine-zip: "s3://cesium-unreal-engine/5.3.0/UE_53_macOS.zip"
unreal-program-name: "UE_5.3"
upload-package-base-name: "CesiumForUnreal-53-ios"
xcode-version: "14.2"
upload-package-base-name: "CesiumForUnreal-53-apple"
xcode-version: "14.3.1"
Combine53:
runs-on: ubuntu-latest
needs: [Windows53, Android53, Linux53, MacOS53, iOS53]
needs: [Windows53, Android53, Linux53, Apple53]
steps:
- name: Check out repository code
uses: actions/checkout@v4
Expand All @@ -243,15 +218,10 @@ jobs:
echo "CESIUM_UNREAL_VERSION=$CESIUM_UNREAL_VERSION" >> $GITHUB_ENV
echo "BUILD_CESIUM_UNREAL_PACKAGE_NAME=$BUILD_CESIUM_UNREAL_PACKAGE_NAME" >> $GITHUB_ENV
echo "BUILD_CESIUM_UNREAL_SOURCE_ONLY_PACKAGE_NAME=$BUILD_CESIUM_UNREAL_SOURCE_ONLY_PACKAGE_NAME" >> $GITHUB_ENV
- name: Download iOS build
uses: actions/download-artifact@v4
with:
name: CesiumForUnreal-53-ios-${{ env.CESIUM_UNREAL_VERSION}}
path: combine
- name: Download macOS build
- name: Download Apple build
uses: actions/download-artifact@v4
with:
name: CesiumForUnreal-53-macos-${{ env.CESIUM_UNREAL_VERSION}}
name: CesiumForUnreal-53-apple-${{ env.CESIUM_UNREAL_VERSION}}
path: combine
- name: Download Android build
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -341,29 +311,19 @@ jobs:
unreal-program-name: "UE_5.4"
upload-package-base-name: "CesiumForUnreal-54-linux"
clang-version: "v22_clang-16.0.6-centos7"
macOS54:
uses: ./.github/workflows/buildMac.yml
secrets: inherit
with:
runner-label: macos-13
unreal-engine-version: "5.4.0"
unreal-engine-zip: "s3://cesium-unreal-engine/5.4.0/UE_54_macOS.zip"
unreal-program-name: "UE_5.4"
upload-package-base-name: "CesiumForUnreal-54-macos"
xcode-version: "14.2"
iOS54:
uses: ./.github/workflows/buildiOS.yml
Apple54:
uses: ./.github/workflows/buildApple.yml
secrets: inherit
with:
runner-label: macos-13
runner-label: macos-14
unreal-engine-version: "5.4.0"
unreal-engine-zip: "s3://cesium-unreal-engine/5.4.0/UE_54_macOS.zip"
unreal-program-name: "UE_5.4"
upload-package-base-name: "CesiumForUnreal-54-ios"
xcode-version: "14.2"
upload-package-base-name: "CesiumForUnreal-54-apple"
xcode-version: "14.3.1"
Combine54:
runs-on: ubuntu-latest
needs: [Windows54, Android54, Linux54, MacOS54, iOS54]
needs: [Windows54, Android54, Linux54, Apple54]
steps:
- name: Check out repository code
uses: actions/checkout@v4
Expand All @@ -376,15 +336,10 @@ jobs:
echo "CESIUM_UNREAL_VERSION=$CESIUM_UNREAL_VERSION" >> $GITHUB_ENV
echo "BUILD_CESIUM_UNREAL_PACKAGE_NAME=$BUILD_CESIUM_UNREAL_PACKAGE_NAME" >> $GITHUB_ENV
echo "BUILD_CESIUM_UNREAL_SOURCE_ONLY_PACKAGE_NAME=$BUILD_CESIUM_UNREAL_SOURCE_ONLY_PACKAGE_NAME" >> $GITHUB_ENV
- name: Download iOS build
uses: actions/download-artifact@v4
with:
name: CesiumForUnreal-54-ios-${{ env.CESIUM_UNREAL_VERSION}}
path: combine
- name: Download macOS build
- name: Download Apple build
uses: actions/download-artifact@v4
with:
name: CesiumForUnreal-54-macos-${{ env.CESIUM_UNREAL_VERSION}}
name: CesiumForUnreal-54-apple-${{ env.CESIUM_UNREAL_VERSION}}
path: combine
- name: Download Android build
uses: actions/download-artifact@v4
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/buildAndroid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure vcpkg caching
uses: ./.github/actions/vcpkg-cache
with:
id: ${{ inputs.upload-package-base-name }}
- name: Set environment variables
run: |
$env:CESIUM_UNREAL_VERSION=$env:GITHUB_REF_NAME
Expand All @@ -52,25 +56,28 @@ jobs:
echo "BUILD_CESIUM_UNREAL_PACKAGE_NAME=${ENV:BUILD_CESIUM_UNREAL_PACKAGE_NAME}" >> $ENV:GITHUB_ENV
- name: Install nasm
uses: ilammy/setup-nasm@v1.5.1
- name: Install Unreal Engine
uses: ./.github/actions/install-unreal-windows
with:
unreal-engine-zip: ${{ inputs.unreal-engine-zip }}
unreal-program-name: ${{ inputs.unreal-program-name }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Build cesium-native
run: |
# CMake gets confused by the Windows backslashes
$env:ANDROID_NDK_ROOT=$env:ANDROID_NDK_ROOT.replace('\', '/')
$env:ANDROID_NDK_HOME=$env:ANDROID_NDK_ROOT
$env:UNREAL_ENGINE_ROOT="D:/Program Files/Epic Games/${{ inputs.unreal-program-name }}"
$env:CESIUM_VCPKG_RELEASE_ONLY="TRUE"
cd extern
cmake -B build-android -S . -G Ninja -DCMAKE_TOOLCHAIN_FILE="unreal-android-toolchain.cmake" -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release
cmake --build build-android --config Release --target install -j8
cd ..
rm -r -fo extern
- name: Install Unreal Engine
uses: ./.github/actions/install-unreal-windows
with:
unreal-engine-zip: ${{ inputs.unreal-engine-zip }}
unreal-program-name: ${{ inputs.unreal-program-name }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Overwrite plugin engine version
run: |
((Get-Content -path CesiumForUnreal.uplugin -Raw) -replace '"EngineVersion": "5.1.0"','"EngineVersion": "${{ inputs.unreal-engine-version }}"') | Set-Content -Path CesiumForUnreal.uplugin
((Get-Content -path CesiumForUnreal.uplugin -Raw) -replace '"EngineVersion": "5.2.0"','"EngineVersion": "${{ inputs.unreal-engine-version }}"') | Set-Content -Path CesiumForUnreal.uplugin
- name: Customize BuildConfiguration.xml
run: |
mkdir -p "$env:USERPROFILE\AppData\Roaming\Unreal Engine\UnrealBuildTool"
Expand All @@ -92,10 +99,6 @@ jobs:
if: ${{ failure() }}
run: |
cat "C:\Users\runneradmin\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Program+Files+Epic+Games+${{ inputs.unreal-program-name }}\UBT-UnrealGame-Android-Development.txt"
- name: Compress debug sections
run: |
dir packages/CesiumForUnreal/Intermediate/Build/Android/UnrealGame/Development/CesiumRuntime/*.o | Foreach-Object { & $ENV:ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-objcopy.exe --compress-debug-sections $_.FullName }
dir packages/CesiumForUnreal/Intermediate/Build/Android/UnrealGame/Shipping/CesiumRuntime/*.o | Foreach-Object { & $ENV:ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-objcopy.exe --compress-debug-sections $_.FullName }
- name: Publish plugin package artifact
if: ${{ success() }}
uses: actions/upload-artifact@v4
Expand Down
Loading