Skip to content

Commit 5bdb5ff

Browse files
Breakthroughclaude
andcommitted
[ci] Add workflow to cache NVIDIA dependencies
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1bb4c55 commit 5bdb5ff

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Simple workflow to cache NVIDIA dependencies
2+
# Run this once to populate the cache, then disable or delete
3+
4+
name: Cache NVIDIA Dependencies
5+
6+
on:
7+
workflow_dispatch:
8+
9+
jobs:
10+
cache-deps:
11+
runs-on: windows-2025
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: false
17+
fetch-depth: 1
18+
- name: Cache NVIDIA dependencies
19+
id: cache-nvidia-deps
20+
uses: actions/cache@v3
21+
with:
22+
path: .deps/Nvidia
23+
key: nvidia-deps-cuda-13.1.1-cudnn-9.18.1.3
24+
- name: Clone NVIDIA dependencies
25+
if: steps.cache-nvidia-deps.outputs.cache-hit != 'true'
26+
env:
27+
SSH_PRIVATE_KEY: ${{ secrets.DEPS_REPO_SSH_KEY }}
28+
run: |
29+
eval "$(ssh-agent -s)"
30+
ssh-add - <<< "${SSH_PRIVATE_KEY}"
31+
ssh-keyscan github.com >> ~/.ssh/known_hosts 2>/dev/null
32+
git clone git@github.com:Breakthrough/opencv-python-cuda-deps.git .deps
33+
shell: bash
34+
- name: Cache populated
35+
run: |
36+
echo "NVIDIA dependencies cached successfully!"
37+
ls -la .deps/Nvidia/ || echo "Cache was already populated"
38+
shell: bash

0 commit comments

Comments
 (0)