File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments