@@ -41,36 +41,59 @@ jobs:
4141 rm -rf ./* || true
4242 rm -rf ./.??* || true
4343 working-directory : ${{ github.workspace }}
44+
4445 - name : Setup environment
4546 shell : bash
4647 run : |
4748 if [[ "${{ github.event_name }}" == "schedule" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
4849 echo "ENABLE_ROLLING=1" >> $GITHUB_ENV
4950 fi
51+
5052 - name : Checkout
5153 uses : actions/checkout@v3
5254 with :
5355 submodules : false
5456 fetch-depth : 0
57+
5558 - name : Set up Python ${{ matrix.python-version }}
5659 uses : actions/setup-python@v4
5760 with :
5861 python-version : ${{ matrix.python-version }}
5962 architecture : ${{ matrix.platform }}
63+
6064 - name : Setup MSBuild.exe
616566+
6267 - name : Setup NASM
6368 uses : ilammy/setup-nasm@v1
69+
70+ - name : Setup OpenBLAS
71+ run : |
72+ mkdir openblas
73+ cd openblas
74+ curl -o OpenBLAS-0.3.24.zip https://altushost-swe.dl.sourceforge.net/project/openblas/v0.3.24/OpenBLAS-0.3.24-${{ matrix.platform }}.zip
75+ tar -xf OpenBLAS-0.3.24.zip || unzip OpenBLAS-0.3.24.zip
76+ set "OpenBLAS_HOME=${{ github.workspace }}\\openblas"
77+ set "PATH=%OpenBLAS_HOME%\\bin;%PATH%"
78+ if exist %OpenBLAS_HOME%\\bin\\libopenblas.dll (
79+ copy /y %OpenBLAS_HOME%\\bin\\libopenblas.dll %OpenBLAS_HOME%\\bin\\libopenblas.exp.dll
80+ )
81+ dir %OpenBLAS_HOME%\\bin
82+ shell : cmd
83+
6484 - name : Build a package
65- # CMake 3.25 regression fix. See https://stackoverflow.com/questions/74162633/problem-compiling-from-source-opencv-with-mvsc2019-in-64-bit-version
6685 run : |
6786 python --version
6887 python -m pip install --upgrade pip
6988 python -m pip install --upgrade setuptools
7089 python -m pip install cmake==3.24.2
7190 python -m pip install toml && python -c "import toml; c = toml.load('pyproject.toml'); print('\n'.join(c['build-system']['requires']))" >> requirements.txt | python -m pip install -r requirements.txt
72- set "CI_BUILD=1" && python setup.py bdist_wheel --py-limited-api=cp37 --dist-dir=%cd%\wheelhouse -v
91+ set "CI_BUILD=1"
92+ set "OpenBLAS_HOME=${{ github.workspace }}\\openblas"
93+ set "PATH=%OpenBLAS_HOME%\\bin;%PATH%"
94+ python setup.py bdist_wheel --py-limited-api=cp37 --dist-dir=%cd%\\wheelhouse -v
7395 shell : cmd
96+
7497 - name : Saving all wheels
7598 uses : actions/upload-artifact@v4
7699 with :
0 commit comments