2020
2121jobs :
2222 build-windows :
23- runs-on : windows-2022
23+ runs-on : windows-2025
2424
2525 defaults :
2626 run :
@@ -39,44 +39,12 @@ jobs:
3939 - name : Setup Ninja
4040 run : pip install ninja
4141
42- - name : Cache protobuf
43- id : cache-protobuf
44- uses : actions/cache@v4
45- with :
46- path : vsort/protobuf/install
47- key : ${{ runner.os }}-vsort-protobuf-v4
48-
49- - name : Checkout protobuf
50- uses : actions/checkout@v4
51- if : steps.cache-protobuf.outputs.cache-hit != 'true'
52- with :
53- repository : protocolbuffers/protobuf
54- # follows protobuf in https://github.com/AmusementClub/onnxruntime/blob/master/cmake/external/onnxruntime_external_deps.cmake#L203
55- # if you change this, remember to bump the version of the cache key.
56- ref : v3.21.12
57- fetch-depth : 1
58- path : vsort/protobuf
59-
60- - name : Configure protobuf
61- if : steps.cache-protobuf.outputs.cache-hit != 'true'
62- run : cmake -S protobuf -B protobuf\build_rel -G Ninja -LA
63- -D CMAKE_BUILD_TYPE=Release
64- -D protobuf_BUILD_SHARED_LIBS=OFF -D protobuf_BUILD_TESTS=OFF
65-
66- - name : Build protobuf
67- if : steps.cache-protobuf.outputs.cache-hit != 'true'
68- run : cmake --build protobuf\build_rel --verbose
69-
70- - name : Install protobuf
71- if : steps.cache-protobuf.outputs.cache-hit != 'true'
72- run : cmake --install protobuf\build_rel --prefix protobuf\install
73-
7442 - name : Cache onnx
7543 id : cache-onnx
7644 uses : actions/cache@v4
7745 with :
7846 path : vsort/onnx/install
79- key : ${{ runner.os }}-vsort-onnx-v5
47+ key : ${{ runner.os }}-vsort-onnx-v6
8048
8149 - name : Checkout onnx
8250 if : steps.cache-onnx.outputs.cache-hit != 'true'
@@ -85,20 +53,19 @@ jobs:
8553 repository : onnx/onnx
8654 # follows onnx in https://github.com/AmusementClub/onnxruntime/tree/master/cmake/external
8755 # if you change this, remember to bump the version of the cache key.
88- ref : 990217f043af7222348ca8f0301e17fa7b841781
56+ ref : v1.19.0
8957 fetch-depth : 1
9058 path : vsort/onnx
9159
9260 - name : Configure onnx
9361 if : steps.cache-onnx.outputs.cache-hit != 'true'
9462 run : cmake -S onnx -B onnx\build -G Ninja -LA
9563 -D CMAKE_BUILD_TYPE=Release
96- -D Protobuf_PROTOC_EXECUTABLE=protobuf\install\bin\protoc
97- -D Protobuf_LITE_LIBRARY=protobuf\install\lib
98- -D Protobuf_LIBRARIES=protobuf\install\lib
64+ -D CMAKE_PREFIX_PATH=%cd%\protobuf\install\lib\cmake
9965 -D ONNX_USE_LITE_PROTO=ON -D ONNX_USE_PROTOBUF_SHARED_LIBS=OFF
10066 -D ONNX_GEN_PB_TYPE_STUBS=OFF -D ONNX_ML=0
10167 -D ONNX_USE_MSVC_STATIC_RUNTIME=1
68+ -D ONNX_BUILD_CUSTOM_PROTOBUF=ON
10269
10370 - name : Build onnx
10471 if : steps.cache-onnx.outputs.cache-hit != 'true'
@@ -116,21 +83,21 @@ jobs:
11683
11784 - name : Download ONNX Runtime Precompilation
11885 run : |
119- curl -s -o ortgpu.zip -LJO https://github.com/AmusementClub/onnxruntime/releases/download/orttraining_rc2-8036-geb41d57f21-240425-0428 /onnxruntime-gpu-win64.zip
86+ curl -s -o ortgpu.zip -LJO https://github.com/AmusementClub/onnxruntime/releases/download/orttraining_rc2-10488-g4754a1d64e-250830-1356 /onnxruntime-gpu-win64.zip
12087 unzip -q ortgpu.zip
12188
12289 - name : Cache CUDA
12390 id : cache-cuda
12491 uses : actions/cache@v4
12592 with :
12693 path : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA
127- key : ${{ runner.os }}-cuda-12.4 .1
94+ key : ${{ runner.os }}-cuda-12.9 .1
12895
12996 - name : Setup CUDA
13097 if : steps.cache-cuda.outputs.cache-hit != 'true'
13198 run : |
132- curl -s -o cuda_installer.exe -L https://developer.download.nvidia.com/compute/cuda/12.4 .1/network_installers/cuda_12.4 .1_windows_network.exe
133- cuda_installer.exe -s nvcc_12.4 cudart_12.4
99+ curl -s -o cuda_installer.exe -L https://developer.download.nvidia.com/compute/cuda/12.9 .1/network_installers/cuda_12.9 .1_windows_network.exe
100+ cuda_installer.exe -s nvcc_12.9 cudart_12.9
134101
135102 - name : Configure
136103 run : cmake -S . -B build -G Ninja -LA
@@ -142,7 +109,7 @@ jobs:
142109 -D ONNX_RUNTIME_API_DIRECTORY=onnxruntime-gpu\include\onnxruntime
143110 -D ONNX_RUNTIME_LIB_DIRECTORY=onnxruntime-gpu\lib
144111 -D ENABLE_CUDA=1
145- -D CUDAToolkit_ROOT="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4 "
112+ -D CUDAToolkit_ROOT="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9 "
146113 -D ENABLE_DML=1
147114 -D CMAKE_CXX_STANDARD=20
148115
@@ -161,7 +128,7 @@ jobs:
161128 - name : Download DirectML Library
162129 # follows DirectML in https://github.com/AmusementClub/onnxruntime/blob/master/cmake/external/dml.cmake#L44
163130 run : |
164- curl -s -o directml.nupkg -LJO https://www.nuget.org/api/v2/package/Microsoft.AI.DirectML/1.14.1
131+ curl -s -o directml.nupkg -LJO https://www.nuget.org/api/v2/package/Microsoft.AI.DirectML/1.15.4
165132 unzip -q directml.nupkg -d dml
166133 copy dml\bin\x64-win\DirectML.dll artifact\vsort\
167134
0 commit comments