Update cibuildwheel to latest version #67
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build MKL Windows | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - master | |
| env: | |
| # update urls for oneapi packages according to | |
| # https://github.com/oneapi-src/oneapi-ci/blob/master/.github/workflows/build_all.yml | |
| WINDOWS_BASEKIT_URL: https:/registrationcenter-download.intel.com/akdlm/IRC_NAS/c961e083-5685-4f0b-ada5-c6cf16f561dd/w_BaseKit_p_2023.1.0.47256_offline.exe | |
| WINDOWS_BASEKIT_COMPONENTS: intel.oneapi.win.mkl.devel | |
| jobs: | |
| build_wheels: | |
| name: Build wheel on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: cmd | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [windows-2022] | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: cache install oneapi | |
| id: cache-install | |
| uses: actions/cache@v4 | |
| with: | |
| path: C:\Program Files (x86)\Intel\oneAPI\ | |
| key: install-${{ env.WINDOWS_BASEKIT_URL }}-${{ env.WINDOWS_BASEKIT_COMPONENTS }} | |
| - name: install oneapi mkl | |
| if: steps.cache-install.outputs.cache-hit != 'true' | |
| run: | | |
| curl.exe --output %TEMP%\webimage_base.exe --url %WINDOWS_BASEKIT_URL% --retry 5 --retry-delay 5 | |
| start /b /wait %TEMP%\webimage_base.exe -s -x -f webimage_base_extracted --log extract_base.log | |
| del %TEMP%\webimage_base.exe | |
| webimage_base_extracted\bootstrapper.exe -s --action install --components=%WINDOWS_BASEKIT_COMPONENTS% --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 --log-dir=. | |
| rd /s/q "webimage_base_extracted" | |
| - name: Build wheels | |
| uses: pypa/[email protected] | |
| with: | |
| package-dir: backend/mkl | |
| config-file: backend/mkl/cibuildwheel.toml | |
| output-dir: wheelhouse | |
| - name: Upload artifacts to github | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: wheels-mkl-${{ matrix.os }} | |
| path: ./wheelhouse |