File tree Expand file tree Collapse file tree 5 files changed +23
-17
lines changed
Expand file tree Collapse file tree 5 files changed +23
-17
lines changed Original file line number Diff line number Diff line change 3030 cache-from : |
3131 type=gha,scope=${{ github.ref_name }}
3232 type=gha,scope=main
33- cache-to : type=gha,mode=max ,scope=${{ github.ref_name }}
33+ cache-to : type=gha,mode=min ,scope=${{ github.ref_name }}
Original file line number Diff line number Diff line change 1010env :
1111 DEBIAN_FRONTEND : noninteractive
1212 OPENCV_VERSION : 4.13.0
13- OPENCV_CACHE_VERSION : 1
1413
1514jobs :
1615 build :
5453 uses : actions/cache/restore@v5
5554 with :
5655 path : ${{ github.workspace }}/opencv_artifacts/
57- key : opencv-arm-${{ env.OPENCV_VERSION }}-rev${{ env.OPENCV_CACHE_VERSION }}
56+ key : opencv-arm-${{ env.OPENCV_VERSION }}-${{ hashFiles('.github/workflows/linux-arm.yml') }}
57+ restore-keys : |
58+ opencv-arm-${{ env.OPENCV_VERSION }}-
5859
5960 - name : Checkout OpenCV
6061 if : steps.opencv-cache.outputs.cache-hit != 'true'
@@ -125,7 +126,7 @@ jobs:
125126 uses : actions/cache/save@v5
126127 with :
127128 path : ${{ github.workspace }}/opencv_artifacts/
128- key : opencv-arm-${{ env.OPENCV_VERSION }}-rev${{ env.OPENCV_CACHE_VERSION }}
129+ key : opencv-arm-${{ env.OPENCV_VERSION }}
129130
130131 - name : Build OpenCvSharpExtern
131132 run : |
Original file line number Diff line number Diff line change 1010env :
1111 DEBIAN_FRONTEND : noninteractive
1212 OPENCV_VERSION : 4.13.0
13- OPENCV_CACHE_VERSION : 1
1413
1514jobs :
1615 build_test :
5049 id : opencv-cache
5150 uses : actions/cache/restore@v5
5251 with :
53- path : ${{ github.workspace }}/opencv_artifacts_slim/
54- key : opencv-${{ env.OPENCV_VERSION }}-ubuntu-${{ matrix.ubuntu }}-slim-rev${{ env.OPENCV_CACHE_VERSION }}
52+ path : |
53+ ${{ github.workspace }}/opencv_artifacts_slim/include
54+ ${{ github.workspace }}/opencv_artifacts_slim/lib
55+ key : opencv-${{ env.OPENCV_VERSION }}-ubuntu-${{ matrix.ubuntu }}-slim
5556
5657 - name : Checkout OpenCV
5758 if : steps.opencv-cache.outputs.cache-hit != 'true'
@@ -131,8 +132,10 @@ jobs:
131132 if : steps.opencv-cache.outputs.cache-hit != 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main'
132133 uses : actions/cache/save@v5
133134 with :
134- path : ${{ github.workspace }}/opencv_artifacts_slim/
135- key : opencv-${{ env.OPENCV_VERSION }}-ubuntu-${{ matrix.ubuntu }}-slim-rev${{ env.OPENCV_CACHE_VERSION }}
135+ path : |
136+ ${{ github.workspace }}/opencv_artifacts_slim/include
137+ ${{ github.workspace }}/opencv_artifacts_slim/lib
138+ key : opencv-${{ env.OPENCV_VERSION }}-ubuntu-${{ matrix.ubuntu }}-slim
136139
137140 - name : Build OpenCvSharpExtern (slim)
138141 run : |
Original file line number Diff line number Diff line change 1010env :
1111 DEBIAN_FRONTEND : noninteractive
1212 OPENCV_VERSION : 4.13.0
13- OPENCV_CACHE_VERSION : 2
1413
1514jobs :
1615 build_test :
6160 id : opencv-cache
6261 uses : actions/cache/restore@v5
6362 with :
64- path : ${{ github.workspace }}/opencv_artifacts/
65- key : opencv-${{ env.OPENCV_VERSION }}-ubuntu-${{ matrix.ubuntu }}-rev${{ env.OPENCV_CACHE_VERSION }}
63+ path : |
64+ ${{ github.workspace }}/opencv_artifacts/include
65+ ${{ github.workspace }}/opencv_artifacts/lib
66+ key : opencv-${{ env.OPENCV_VERSION }}-ubuntu-${{ matrix.ubuntu }}
6667
6768 - name : Checkout OpenCV
6869 if : steps.opencv-cache.outputs.cache-hit != 'true'
@@ -132,8 +133,10 @@ jobs:
132133 if : steps.opencv-cache.outputs.cache-hit != 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main'
133134 uses : actions/cache/save@v5
134135 with :
135- path : ${{ github.workspace }}/opencv_artifacts/
136- key : opencv-${{ env.OPENCV_VERSION }}-ubuntu-${{ matrix.ubuntu }}-rev${{ env.OPENCV_CACHE_VERSION }}
136+ path : |
137+ ${{ github.workspace }}/opencv_artifacts/include
138+ ${{ github.workspace }}/opencv_artifacts/lib
139+ key : opencv-${{ env.OPENCV_VERSION }}-ubuntu-${{ matrix.ubuntu }}
137140
138141 - name : Build OpenCvSharpExtern
139142 run : |
Original file line number Diff line number Diff line change 1010env :
1111 DEBIAN_FRONTEND : noninteractive
1212 OPENCV_VERSION : 4.13.0
13- OPENCV_CACHE_VERSION : 1
1413 EM_VERSION : 4.0.23
1514 EM_CACHE_FOLDER : ' emsdk-cache'
1615
5958 uses : actions/cache/restore@v5
6059 with :
6160 path : ${{ github.workspace }}/opencv_wasm/
62- key : opencv-${{ env.OPENCV_VERSION }}-wasm-${{ env.EM_VERSION }}-rev${{ env.OPENCV_CACHE_VERSION }}
61+ key : opencv-${{ env.OPENCV_VERSION }}-wasm-${{ env.EM_VERSION }}
6362
6463 - name : Setup Emscripten cache
6564 id : cache-system-libraries
@@ -140,7 +139,7 @@ jobs:
140139 uses : actions/cache/save@v5
141140 with :
142141 path : ${{ github.workspace }}/opencv_wasm/
143- key : opencv-${{ env.OPENCV_VERSION }}-wasm-${{ env.EM_VERSION }}-rev${{ env.OPENCV_CACHE_VERSION }}
142+ key : opencv-${{ env.OPENCV_VERSION }}-wasm-${{ env.EM_VERSION }}
144143
145144 - name : Build OpenCvSharpExtern
146145 run : |
You can’t perform that action at this time.
0 commit comments