-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #487 from CesiumGS/vcpkg-swl
Build and CI improvements, building on vcpkg
- Loading branch information
Showing
20 changed files
with
929 additions
and
896 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,8 +63,8 @@ jobs: | |
del ./UnityHubSetup.exe | ||
- name: Install Unity | ||
run: | | ||
Start-Process -FilePath "C:/Program Files/Unity Hub/Unity Hub.exe" -Args "-- --headless install --version 2021.3.13f1 --changeset 9e7d58001ecf" -Wait | ||
Start-Process -FilePath "C:/Program Files/Unity Hub/Unity Hub.exe" -Args "-- --headless install-modules --version 2021.3.13f1 --changeset 9e7d58001ecf --module android android-sdk-ndk-tools android-open-jdk-8u172-b11 universal-windows-platform uwp-il2cpp" -Wait | ||
Start-Process -FilePath "C:/Program Files/Unity Hub/Unity Hub.exe" -Args "-- --headless install --version 2022.3.41f1 --changeset 0f988161febf" -Wait | ||
Start-Process -FilePath "C:/Program Files/Unity Hub/Unity Hub.exe" -Args "-- --headless install-modules --version 2022.3.41f1 --changeset 0f988161febf --module android android-sdk-ndk-tools android-open-jdk-11.0.14.1+1 universal-windows-platform" -Wait | ||
- name: Create SSH tunnel to Unity License Server | ||
env: | ||
UNITY_LICENSE_SERVER_SSH_KEY: ${{ secrets.UNITY_LICENSE_SERVER_SSH_KEY }} | ||
|
@@ -103,6 +103,10 @@ jobs: | |
run: | | ||
mkdir -p d:\cesium\CesiumForUnityBuildProject\Packages\com.cesium.unity | ||
mv $ENV:GITHUB_WORKSPACE/* d:\cesium\CesiumForUnityBuildProject\Packages\com.cesium.unity | ||
# Disable Unity audio | ||
mkdir -p d:\cesium\CesiumForUnityBuildProject\Packages\com.cesium.unity\ProjectSettings | ||
$text="%YAML 1.1`n%TAG !u! tag:unity3d.com,2011:`n--- !u!11 &1`nAudioManager:`n m_DisableAudio: 1`n" | ||
[IO.File]::WriteAllLines("d:/cesium/CesiumForUnityBuildProject/Packages/com.cesium.unity/ProjectSettings/AudioManager.asset",$text) | ||
- name: Build Reinterop | ||
run: | | ||
cd d:\cesium\CesiumForUnityBuildProject\Packages\com.cesium.unity | ||
|
@@ -121,7 +125,12 @@ jobs: | |
$ENV:EZVCPKG_BASEDIR="D:/.ezvcpkg" | ||
# Run the build | ||
dotnet run --project Build~ | ||
cat D:\cesium\CesiumForUnityBuildProject\Packages\com.cesium.unity\native~\build-Android-arm64\build.log | ||
- name: Publish Logs | ||
if: success() || failure() # run this step even if previous step failed | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Native Build Logs - Windows | ||
path: d:/cesium/CesiumForUnityBuildProject/Packages/com.cesium.unity/native~/build-*/build.log | ||
- name: Publish package artifact | ||
if: ${{ success() }} | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -130,7 +139,7 @@ jobs: | |
path: d:\cesium\CesiumForUnityBuildProject\*.tgz | ||
- name: Run Tests | ||
run: | | ||
start -FilePath "C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Unity.exe" -ArgumentList "-runTests -batchmode -projectPath d:\cesium\CesiumForUnityBuildProject -testResults d:\cesium\temp\TestResults.xml -testPlatform PlayMode -logFile d:\cesium\temp\test-log.txt" -Wait | ||
start -FilePath "C:\Program Files\Unity\Hub\Editor\2022.3.41f1\Editor\Unity.exe" -ArgumentList "-runTests -batchmode -projectPath d:\cesium\CesiumForUnityBuildProject -testResults d:\cesium\temp\TestResults.xml -testPlatform PlayMode -logFile d:\cesium\temp\test-log.txt" -Wait | ||
cat d:\cesium\temp\test-log.txt | ||
- name: Test Report | ||
uses: kring/[email protected] | ||
|
@@ -166,14 +175,14 @@ jobs: | |
sudo cp -R "./UnityHubSetup/Unity Hub.app" /Applications | ||
hdiutil detach ./UnityHubSetup | ||
rm ./UnityHubSetup.dmg | ||
- name: Install Unity 2021.3.13f1 | ||
- name: Install Unity 2022.3.41f1 | ||
# This command sometimes returns exit code 130, despite actually succeeding. | ||
continue-on-error: true | ||
run: | | ||
/Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install --version 2021.3.13f1 --changeset 9e7d58001ecf --architecture x86_64 | ||
/Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install --version 2022.3.41f1 --changeset 0f988161febf --architecture arm64 | ||
- name: Install Unity iOS Support | ||
run: | | ||
/Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install-modules --version 2021.3.13f1 --changeset 9e7d58001ecf --module ios --architecture x86_64 | ||
/Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install-modules --version 2022.3.41f1 --changeset 0f988161febf --module ios --architecture arm64 | ||
- name: Configure Unity to Use the License Server | ||
run: | | ||
sudo mkdir -p "/Library/Application Support/Unity/config" | ||
|
@@ -213,6 +222,9 @@ jobs: | |
run: | | ||
mkdir -p ~/cesium/CesiumForUnityBuildProject/Packages/com.cesium.unity | ||
mv $GITHUB_WORKSPACE/* ~/cesium/CesiumForUnityBuildProject/Packages/com.cesium.unity | ||
# Disable Unity audio | ||
mkdir -p ~/cesium/CesiumForUnityBuildProject/Packages/com.cesium.unity/ProjectSettings | ||
echo '%YAML 1.1\n%TAG !u! tag:unity3d.com,2011:\n--- !u!11 &1\nAudioManager:\n m_DisableAudio: 1\n' > ~/cesium/CesiumForUnityBuildProject/Packages/com.cesium.unity/ProjectSettings/AudioManager.asset | ||
- name: Build Reinterop | ||
run: | | ||
cd ~/cesium/CesiumForUnityBuildProject/Packages/com.cesium.unity | ||
|
@@ -224,12 +236,12 @@ jobs: | |
cd ~/cesium/CesiumForUnityBuildProject/Packages/com.cesium.unity | ||
dotnet run --project Build~ | ||
ls -l ~/cesium/CesiumForUnityBuildProject | ||
- name: Print log | ||
if: ${{ failure() }} | ||
run: | | ||
cat /Users/runner/cesium/CesiumForUnityBuildProject/Packages/com.cesium.unity/native~/build-Standalone-x86_64/build.log | ||
cat /Users/runner/cesium/CesiumForUnityBuildProject/Packages/com.cesium.unity/native~/build-Standalone-arm64/build.log | ||
cat /Users/runner/cesium/CesiumForUnityBuildProject/Packages/com.cesium.unity/native~/build-iOS/build.log | ||
- name: Publish Logs | ||
if: success() || failure() # run this step even if previous step failed | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Native Build Logs - macOS | ||
path: ~/cesium/CesiumForUnityBuildProject/Packages/com.cesium.unity/native~/build-*/build.log | ||
- name: Publish package artifact | ||
if: ${{ success() }} | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -238,7 +250,7 @@ jobs: | |
path: ~/cesium/CesiumForUnityBuildProject/*.tgz | ||
- name: Run Tests | ||
run: | | ||
/Applications/Unity/Hub/Editor/2021.3.13f1/Unity.app/Contents/MacOS/Unity -runTests -batchmode -projectPath ~/cesium/CesiumForUnityBuildProject -testResults ~/cesium/CesiumForUnityBuildProject/TestResults.xml -testPlatform PlayMode -logFile ~/cesium/CesiumForUnityBuildProject/test-log.txt | ||
/Applications/Unity/Hub/Editor/2022.3.41f1/Unity.app/Contents/MacOS/Unity -runTests -batchmode -projectPath ~/cesium/CesiumForUnityBuildProject -testResults ~/cesium/CesiumForUnityBuildProject/TestResults.xml -testPlatform PlayMode -logFile ~/cesium/CesiumForUnityBuildProject/test-log.txt | ||
cat ~/cesium/CesiumForUnityBuildProject/test-log.txt | ||
ls /Users/runner/cesium/CesiumForUnityBuildProject/TestResults.xml | ||
- name: Test Report | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.