66 runs-on : ubuntu-latest
77 steps :
88 - name : Check out repository code
9- uses : actions/checkout@v3
9+ uses : actions/checkout@v4
1010 - name : Install clang-format
1111 run : pip install clang-format
1212 - name : Check source formatting
1313 run : |
1414 find native~/Runtime native~/Editor native~/Shared \( -iname '*.cpp' -o -iname '*.h' \) -print0 | xargs -0 clang-format --dry-run -Werror
1515 Windows :
1616 needs : [QuickChecks]
17- runs-on : ["self-hosted"," windows","x64","unity-2021-3"]
17+ runs-on : windows-latest
1818 # Only allow a single Windows build at a time, for Unity licensing reasons
1919 concurrency : windows
2020 steps :
2121 - name : Check out repository code
22- uses : actions/checkout@v3
22+ uses : actions/checkout@v4
2323 with :
2424 submodules : recursive
2525 - name : Install nasm
26- uses : ilammy/setup-nasm@v1.4.0
26+ uses : ilammy/setup-nasm@v1.5.1
27+ - name : Install wget
28+ run : |
29+ choco install -y wget
30+ - name : Install Unity Hub
31+ run : |
32+ wget https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.exe
33+ Start-Process "./UnityHubSetup.exe" -Args "/S" -Wait
34+ del ./UnityHubSetup.exe
35+ - name : Install Unity
36+ run : |
37+ Start-Process -FilePath "C:/Program Files/Unity Hub/Unity Hub.exe" -Args "-- --headless install --version 2021.3.13f1 --changeset 9e7d58001ecf" -Wait
38+ 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
2739 - name : Create SSH tunnel to Unity License Server
2840 env :
2941 UNITY_LICENSE_SERVER_SSH_KEY : ${{ secrets.UNITY_LICENSE_SERVER_SSH_KEY }}
7789 dir d:\cesium\CesiumForUnityBuildProject
7890 - name : Publish package artifact
7991 if : ${{ success() }}
80- uses : actions/upload-artifact@v3
92+ uses : actions/upload-artifact@v4
8193 with :
8294 name : Windows Package
8395 path : d:\cesium\CesiumForUnityBuildProject\*.tgz
@@ -86,24 +98,28 @@ jobs:
8698 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
8799 cat d:\cesium\temp\test-log.txt
88100 - name : Test Report
89- uses : kring/test-reporter@v1.6.1 -kring
101+ uses : kring/test-reporter@v1.6.2 -kring
90102 if : success() || failure() # run this step even if previous step failed
91103 with :
92104 name : Tests - Windows
93105 path : d:/cesium/temp/TestResults.xml
94106 reporter : dotnet-nunit
95107 MacOS :
96108 needs : [QuickChecks]
97- runs-on : macos-11
109+ runs-on : macos-12
98110 # Only allow a single macOS build at a time, for Unity licensing reasons
99111 concurrency : mac
100112 steps :
113+ - name : Set XCode version
114+ uses : maxim-lobanov/setup-xcode@v1
115+ with :
116+ xcode-version : " 14.1"
101117 - name : Check out repository code
102- uses : actions/checkout@v3
118+ uses : actions/checkout@v4
103119 with :
104120 submodules : recursive
105121 - name : Install nasm
106- uses : ilammy/setup-nasm@v1.4.0
122+ uses : ilammy/setup-nasm@v1.5.1
107123 - name : Install jq
108124 run : brew install jq
109125 - name : Install Unity Hub
@@ -118,10 +134,10 @@ jobs:
118134 # This command sometimes returns exit code 130, despite actually succeeding.
119135 continue-on-error : true
120136 run : |
121- /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install --version 2021.3.13f1 --changeset 9e7d58001ecf
137+ /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install --version 2021.3.13f1 --changeset 9e7d58001ecf --architecture x86_64
122138 - name : Install Unity iOS Support
123139 run : |
124- /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install-modules --version 2021.3.13f1 --changeset 9e7d58001ecf --module ios
140+ /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install-modules --version 2021.3.13f1 --changeset 9e7d58001ecf --module ios --architecture x86_64
125141 - name : Configure Unity to Use the License Server
126142 run : |
127143 sudo mkdir -p "/Library/Application Support/Unity/config"
@@ -172,7 +188,7 @@ jobs:
172188 ls -l ~/cesium/CesiumForUnityBuildProject
173189 - name : Publish package artifact
174190 if : ${{ success() }}
175- uses : actions/upload-artifact@v3
191+ uses : actions/upload-artifact@v4
176192 with :
177193 name : macOS Package
178194 path : ~/cesium/CesiumForUnityBuildProject/*.tgz
@@ -182,7 +198,7 @@ jobs:
182198 cat ~/cesium/CesiumForUnityBuildProject/test-log.txt
183199 ls /Users/runner/cesium/CesiumForUnityBuildProject/TestResults.xml
184200 - name : Test Report
185- uses : kring/test-reporter@v1.6.1 -kring
201+ uses : kring/test-reporter@v1.6.2 -kring
186202 if : success() || failure() # run this step even if previous step failed
187203 with :
188204 name : Tests - macOS
@@ -193,11 +209,11 @@ jobs:
193209 needs : [Windows, MacOS]
194210 steps :
195211 - name : Check out repository code
196- uses : actions/checkout@v3
212+ uses : actions/checkout@v4
197213 - name : Install jq
198214 run : sudo apt install jq
199215 - name : Download macOS build
200- uses : actions/download-artifact@v3
216+ uses : actions/download-artifact@v4
201217 with :
202218 name : macOS Package
203219 path : combine/macos
@@ -207,7 +223,7 @@ jobs:
207223 tar xzf *.tgz
208224 rm *.tgz
209225 - name : Download Windows build
210- uses : actions/download-artifact@v3
226+ uses : actions/download-artifact@v4
211227 with :
212228 name : Windows Package
213229 path : combine/windows
@@ -268,7 +284,7 @@ jobs:
268284 tar czf $NAME-$VERSION.tgz package
269285 - name : Publish combined package
270286 if : ${{ success() }}
271- uses : actions/upload-artifact@v3
287+ uses : actions/upload-artifact@v4
272288 with :
273289 name : Combined Package
274290 path : combine/merged/*.tgz
0 commit comments