|
| 1 | +# https://oneapi-src.github.io/oneapi-ci/ |
| 2 | + |
| 3 | +name: oneapi-windows |
| 4 | + |
| 5 | +env: |
| 6 | + CMAKE_GENERATOR: "MinGW Makefiles" |
| 7 | + WINDOWS_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/18674/w_BaseKit_p_2022.2.0.252_offline.exe |
| 8 | + WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/18680/w_HPCKit_p_2022.2.0.173_offline.exe |
| 9 | + WINDOWS_CPP_COMPONENTS: intel.oneapi.win.cpp-compiler |
| 10 | + WINDOWS_FORTRAN_COMPONENTS: intel.oneapi.win.ifort-compiler |
| 11 | + WINDOWS_MKL_COMPONENTS: intel.oneapi.win.mkl.devel |
| 12 | + WINDOWS_MPI_COMPONENTS: intel.oneapi.win.mpi.devel |
| 13 | + CC: icx |
| 14 | + CXX: icx |
| 15 | + FC: ifx |
| 16 | + CMAKE_BUILD_TYPE: Release |
| 17 | + # Release is necessary to avoid ITERATOR_DEBUG_LEVEL mismatch with libstdc++ |
| 18 | + |
| 19 | +on: |
| 20 | + push: |
| 21 | + paths: |
| 22 | + - "**.bat" |
| 23 | + - "**/*.cpp" |
| 24 | + - "**.f90" |
| 25 | + - "**.F90" |
| 26 | + - "**.cmake" |
| 27 | + - "**/CMakeLists.txt" |
| 28 | + - ".github/workflows/oneapi-windows.yml" |
| 29 | + - ".github/workflows/oneapi_install_windows.bat" |
| 30 | + - ".github/workflows/oneapi_run_windows.bat" |
| 31 | + - ".github/workflows/oneapi_cache_exclude_windows.bat" |
| 32 | + |
| 33 | +jobs: |
| 34 | + |
| 35 | + windows-oneapi: |
| 36 | + timeout-minutes: 60 |
| 37 | + runs-on: windows-latest |
| 38 | + |
| 39 | + steps: |
| 40 | + - uses: actions/checkout@v3 |
| 41 | + |
| 42 | + - name: cache install oneAPI |
| 43 | + timeout-minutes: 10 |
| 44 | + id: cache-install |
| 45 | + uses: actions/cache@v3 |
| 46 | + with: |
| 47 | + path: | |
| 48 | + C:\Program Files (x86)\Intel\oneAPI\setvars.bat |
| 49 | + C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat |
| 50 | + C:\Program Files (x86)\Intel\oneAPI\compiler |
| 51 | + C:\Program Files (x86)\Intel\oneAPI\mpi |
| 52 | + key: install-${{ env.WINDOWS_HPCKIT_URL }}-${{ env.WINDOWS_CPP_COMPONENTS }}-${{ env.WINDOWS_FORTRAN_COMPONENTS }}-${{ env.WINDOWS_MPI_COMPONENTS }} |
| 53 | + |
| 54 | + - name: no-cache install oneAPI |
| 55 | + timeout-minutes: 40 |
| 56 | + if: steps.cache-install.outputs.cache-hit != 'true' |
| 57 | + run: | |
| 58 | + ./.github/workflows/oneapi_install_windows.bat ${{ env.WINDOWS_HPCKIT_URL }} "${{ env.WINDOWS_CPP_COMPONENTS }}:${{ env.WINDOWS_FORTRAN_COMPONENTS }}:${{ env.WINDOWS_MPI_COMPONENTS }}" |
| 59 | +
|
| 60 | + - name: "Batch workaround: config, build, test" |
| 61 | + shell: cmd |
| 62 | + run: ".github\\workflows\\oneapi_run_windows.bat" |
| 63 | + |
| 64 | + - name: exclude unused files from cache |
| 65 | + if: steps.cache-install.outputs.cache-hit != 'true' |
| 66 | + run: .github/workflows/oneapi_cache_exclude_windows.ps1 |
0 commit comments