Skip to content

Commit 5b901c2

Browse files
.github/workflows/windows-ort.yml: upgrade to ort 1.23.0 and cuda 12.9.1
1 parent d4eee50 commit 5b901c2

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/windows-ort.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020

2121
jobs:
2222
build-windows:
23-
runs-on: windows-2022
23+
runs-on: windows-2025
2424

2525
defaults:
2626
run:
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/cache@v4
4545
with:
4646
path: vsort/protobuf/install
47-
key: ${{ runner.os }}-vsort-protobuf-v4
47+
key: ${{ runner.os }}-vsort-protobuf-v5
4848

4949
- name: Checkout protobuf
5050
uses: actions/checkout@v4
@@ -53,9 +53,10 @@ jobs:
5353
repository: protocolbuffers/protobuf
5454
# follows protobuf in https://github.com/AmusementClub/onnxruntime/blob/master/cmake/external/onnxruntime_external_deps.cmake#L203
5555
# if you change this, remember to bump the version of the cache key.
56-
ref: v3.21.12
56+
ref: v5.29.2
5757
fetch-depth: 1
5858
path: vsort/protobuf
59+
submodules: 'recursive'
5960

6061
- name: Configure protobuf
6162
if: steps.cache-protobuf.outputs.cache-hit != 'true'
@@ -76,7 +77,7 @@ jobs:
7677
uses: actions/cache@v4
7778
with:
7879
path: vsort/onnx/install
79-
key: ${{ runner.os }}-vsort-onnx-v5
80+
key: ${{ runner.os }}-vsort-onnx-v6
8081

8182
- name: Checkout onnx
8283
if: steps.cache-onnx.outputs.cache-hit != 'true'
@@ -85,7 +86,7 @@ jobs:
8586
repository: onnx/onnx
8687
# follows onnx in https://github.com/AmusementClub/onnxruntime/tree/master/cmake/external
8788
# if you change this, remember to bump the version of the cache key.
88-
ref: 990217f043af7222348ca8f0301e17fa7b841781
89+
ref: v1.19.0
8990
fetch-depth: 1
9091
path: vsort/onnx
9192

@@ -96,6 +97,7 @@ jobs:
9697
-D Protobuf_PROTOC_EXECUTABLE=protobuf\install\bin\protoc
9798
-D Protobuf_LITE_LIBRARY=protobuf\install\lib
9899
-D Protobuf_LIBRARIES=protobuf\install\lib
100+
-D Protobuf_DIR=protobuf\install\lib\cmake\protobuf
99101
-D ONNX_USE_LITE_PROTO=ON -D ONNX_USE_PROTOBUF_SHARED_LIBS=OFF
100102
-D ONNX_GEN_PB_TYPE_STUBS=OFF -D ONNX_ML=0
101103
-D ONNX_USE_MSVC_STATIC_RUNTIME=1
@@ -116,21 +118,21 @@ jobs:
116118
117119
- name: Download ONNX Runtime Precompilation
118120
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
121+
curl -s -o ortgpu.zip -LJO https://github.com/AmusementClub/onnxruntime/releases/download/orttraining_rc2-10488-g4754a1d64e-250830-1356/onnxruntime-gpu-win64.zip
120122
unzip -q ortgpu.zip
121123
122124
- name: Cache CUDA
123125
id: cache-cuda
124126
uses: actions/cache@v4
125127
with:
126128
path: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA
127-
key: ${{ runner.os }}-cuda-12.4.1
129+
key: ${{ runner.os }}-cuda-12.9.1
128130

129131
- name: Setup CUDA
130132
if: steps.cache-cuda.outputs.cache-hit != 'true'
131133
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
134+
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
135+
cuda_installer.exe -s nvcc_12.9 cudart_12.9
134136
135137
- name: Configure
136138
run: cmake -S . -B build -G Ninja -LA
@@ -142,7 +144,7 @@ jobs:
142144
-D ONNX_RUNTIME_API_DIRECTORY=onnxruntime-gpu\include\onnxruntime
143145
-D ONNX_RUNTIME_LIB_DIRECTORY=onnxruntime-gpu\lib
144146
-D ENABLE_CUDA=1
145-
-D CUDAToolkit_ROOT="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4"
147+
-D CUDAToolkit_ROOT="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9"
146148
-D ENABLE_DML=1
147149
-D CMAKE_CXX_STANDARD=20
148150

@@ -161,7 +163,7 @@ jobs:
161163
- name: Download DirectML Library
162164
# follows DirectML in https://github.com/AmusementClub/onnxruntime/blob/master/cmake/external/dml.cmake#L44
163165
run: |
164-
curl -s -o directml.nupkg -LJO https://www.nuget.org/api/v2/package/Microsoft.AI.DirectML/1.14.1
166+
curl -s -o directml.nupkg -LJO https://www.nuget.org/api/v2/package/Microsoft.AI.DirectML/1.15.4
165167
unzip -q directml.nupkg -d dml
166168
copy dml\bin\x64-win\DirectML.dll artifact\vsort\
167169

0 commit comments

Comments
 (0)