Skip to content

Commit f20bc86

Browse files
committed
Auto download and extract CUDA and ROCm binary dynamic libraries to ci release zip files.
1 parent a8ec3c8 commit f20bc86

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,24 @@ jobs:
6666
- name: Build(x64)
6767
run: cmake --build build-x64 --config Release
6868

69+
- name: Download and extract CUDA and ROCm zips
70+
run: |
71+
curl -L -o CUDA_v11.8.zip https://github.com/whyb/FastChwHwcConverter/raw/ci-dependencies/CUDA_v11.8/CUDA_v11.8.zip
72+
curl -L -o ROCm_v6.2.4.zip https://github.com/whyb/FastChwHwcConverter/raw/ci-dependencies/ROCm_v6.2.4/ROCm_v6.2.4.zip
73+
mkdir -p ./build-x64/Release/dependencies
74+
tar -xf CUDA_v11.8.zip -C ./build-x64/Release/dependencies
75+
tar -xf ROCm_v6.2.4.zip -C ./build-x64/Release/dependencies
76+
6977
- name: List build folder
7078
run: |
7179
dir .\build-x64\
7280
dir .\build-x64\Release\
81+
dir .\build-x64\Release\dependencies\
7382
74-
- name: Zip binary files
83+
- name: Zip binary files (include dependencies)
7584
run: |
76-
zip ./bin-windows-msvc-x64.zip .\build-x64\Release\example.exe .\build-x64\Release\benchmark.exe .\build-x64\Release\cuda_benchmark.exe .\build-x64\Release\rocm_benchmark.exe .\build-x64\Release\example-opencv.exe
77-
85+
zip ./bin-windows-msvc-x64.zip .\build-x64\Release\example.exe .\build-x64\Release\benchmark.exe .\build-x64\Release\cuda_benchmark.exe .\build-x64\Release\rocm_benchmark.exe .\build-x64\Release\example-opencv.exe .\build-x64\Release\dependencies\*
86+
7887
- name: Archive Windows build artifacts
7988
uses: actions/upload-artifact@v4
8089
with:

0 commit comments

Comments
 (0)