@@ -37,24 +37,20 @@ jobs:
37
37
path : ${{ github.workspace }}/opencv_files
38
38
key : opencv-${{ env.OPENCV_VERSION }}-rev2
39
39
40
- - name : Download OpenCV binaries by gh
40
+ - name : Download OpenCV binaries
41
41
if : steps.cache_opencv.outputs.cache-hit != 'true'
42
42
shell : powershell
43
43
env :
44
44
GH_TOKEN : ${{ github.token }}
45
45
run : |
46
- gh release download --repo shimat/opencv_files 4.10.0.20240612 --pattern "opencv4100_win_x64.zip"
47
- gh release download --repo shimat/opencv_files 4.10.0.20240612 --pattern "opencv4100_win_x86.zip"
48
- Expand-Archive -Path opencv4100_win_x64.zip -DestinationPath opencv_files/opencv4100_win_x64 -Force -ErrorAction Stop
49
- Expand-Archive -Path opencv4100_win_x86.zip -DestinationPath opencv_files/opencv4100_win_x86 -Force -ErrorAction Stop
46
+ $OPENCV_FILES_TAG = "4.10.0.20240612"
47
+ $OPENCV_VERSION = "4100"
48
+ gh release download --repo shimat/opencv_files $OPENCV_FILES_TAG --pattern "opencv${OPENCV_VERSION}_win_x64.zip"
49
+ gh release download --repo shimat/opencv_files $OPENCV_FILES_TAG --pattern "opencv${OPENCV_VERSION}_win_x86.zip"
50
+ Expand-Archive -Path opencv${OPENCV_VERSION}_win_x64.zip -DestinationPath opencv_files/opencv4100_win_x64 -Force -ErrorAction Stop
51
+ Expand-Archive -Path opencv${OPENCV_VERSION}_win_x86.zip -DestinationPath opencv_files/opencv4100_win_x86 -Force -ErrorAction Stop
50
52
ls opencv_files
51
- ls opencv_files/opencv4100_win_x64
52
-
53
- # - name: Download OpenCV binaries
54
- # if: steps.cache_opencv.outputs.cache-hit != 'true'
55
- # shell: powershell
56
- # run: |
57
- # . ".\download_opencv_windows.ps1"
53
+ ls opencv_files/opencv${OPENCV_VERSION}_win_x64
58
54
59
55
- name : Cache Tesseract binaries
60
56
id : cache_tesseract
63
59
path : ${{ github.workspace }}/tesseract_files
64
60
key : tesseract-41-rev1
65
61
66
- - name : Download Tesseract binaries by gh
62
+ - name : Download Tesseract binaries
67
63
if : steps.cache_tesseract.outputs.cache-hit != 'true'
68
64
shell : powershell
69
65
env :
75
71
New-Item tesseract_files/tesseract_vcpkg -ItemType Directory -Force
76
72
Move-Item tesseract_files/tesseract_vcpkg/installed/* tesseract_files/tesseract_vcpkg/
77
73
ls tesseract_files/tesseract_vcpkg
78
-
79
- # - name: Download Tesseract binaries
80
- # if: steps.cache_tesseract.outputs.cache-hit != 'true'
81
- # shell: powershell
82
- # run: |
83
- # . ".\download_tesseract_windows.ps1"
84
74
85
75
- name : NuGet restore
86
76
shell : cmd
0 commit comments