|
| 1 | +name: windows |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: |
| 6 | + - develop |
| 7 | + - master |
| 8 | + push: |
| 9 | + branches: |
| 10 | + - develop |
| 11 | + - master |
| 12 | + |
| 13 | +jobs: |
| 14 | + build: |
| 15 | + env: |
| 16 | + VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite' |
| 17 | + WINDOWS_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7dff44ba-e3af-4448-841c-0d616c8da6e7/w_BaseKit_p_2024.1.0.595_offline.exe |
| 18 | + WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/c95a3b26-fc45-496c-833b-df08b10297b9/w_HPCKit_p_2024.1.0.561_offline.exe |
| 19 | + LINUX_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/fdc7a2bc-b7a8-47eb-8876-de6201297144/l_BaseKit_p_2024.1.0.596_offline.sh |
| 20 | + LINUX_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7f096850-dc7b-4c35-90b5-36c12abd9eaa/l_HPCKit_p_2024.1.0.560_offline.sh |
| 21 | + LINUX_AIKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/0414ef18-5b64-47f2-9b2e-ae94860272b9/l_AITools.2024.1.0.9.sh |
| 22 | + MACOS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/c112cca6-12cf-4a0c-9e5e-d0d50d3b0f8b/m_RenderKit_p_2024.1.0.744_offline.dmg |
| 23 | + WINDOWS_CPP_COMPONENTS: intel.oneapi.win.cpp-dpcpp-common |
| 24 | + WINDOWS_FORTRAN_COMPONENTS: intel.oneapi.win.ifort-compiler |
| 25 | + WINDOWS_DPCPP_COMPONENTS: intel.oneapi.win.cpp-dpcpp-common |
| 26 | + LINUX_CPP_COMPONENTS: intel-oneapi-dpcpp-cpp-compiler |
| 27 | + LINUX_FORTRAN_COMPONENTS: intel-oneapi-compiler-fortran |
| 28 | + LINUX_DPCPP_COMPONENTS: intel-oneapi-compiler-dpcpp-cpp |
| 29 | + LINUX_CPP_COMPONENTS_WEB: intel.oneapi.lin.dpcpp-cpp-compiler |
| 30 | + LINUX_FORTRAN_COMPONENTS_WEB: intel.oneapi.lin.ifort-compiler |
| 31 | + LINUX_DPCPP_COMPONENTS_WEB: intel.oneapi.lin.dpcpp-cpp-compiler |
| 32 | + MACOS_CPP_COMPONENTS: intel.oneapi.mac.cpp-compiler |
| 33 | + MACOS_FORTRAN_COMPONENTS: intel.oneapi.mac.ifort-compiler |
| 34 | + CACHE_NUMBER: 6 |
| 35 | + SAMPLES_TAG: 2024.1.0 |
| 36 | + COMPILER_VERSION: 2024.1.0 |
| 37 | + TBB_VERSION: 2021.12.0 |
| 38 | + VS_VER: vs2022 |
| 39 | + strategy: |
| 40 | + fail-fast: false |
| 41 | + matrix: |
| 42 | + os: |
| 43 | + - windows-2022 |
| 44 | + toolset: |
| 45 | + - v142 |
| 46 | + - v143 |
| 47 | + runs-on: ${{matrix.os}} |
| 48 | + |
| 49 | + steps: |
| 50 | + - uses: actions/checkout@master |
| 51 | + with: |
| 52 | + repository: bluequartzsoftware/bcls |
| 53 | + path: ./SDK/bcls |
| 54 | + ref: refs/heads/develop |
| 55 | + - uses: actions/checkout@master |
| 56 | + with: |
| 57 | + repository: bluequartzsoftware/clfortran |
| 58 | + path: ./SDK/clfortran |
| 59 | + ref: refs/heads/develop |
| 60 | + |
| 61 | + - uses: actions/checkout@v2 |
| 62 | + - name: cache install |
| 63 | + id: cache-install |
| 64 | + uses: actions/cache@v2 |
| 65 | + with: |
| 66 | + path: | |
| 67 | + C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat |
| 68 | + C:\Program Files (x86)\Intel\oneAPI\compiler |
| 69 | + key: install-${{ env.CACHE_NUMBER }}-${{ env.WINDOWS_HPCKIT_URL }}-${{ env.WINDOWS_FORTRAN_COMPONENTS }}-compiler-${{ hashFiles('**/scripts/cache_exclude_windows.sh') }} |
| 70 | + - name: install |
| 71 | + if: steps.cache-install.outputs.cache-hit != 'true' |
| 72 | + run: .github/scripts/install_windows.bat $WINDOWS_HPCKIT_URL $WINDOWS_FORTRAN_COMPONENTS |
| 73 | + - name: Configure |
| 74 | + run: | |
| 75 | + cmake --preset ci-windows-${{matrix.toolset}} ${{github.workspace}} |
| 76 | + # - name: build |
| 77 | + # run: .github/scripts/build_windows.bat fortran $VS_VER $SAMPLES_TAG |
| 78 | + - name: exclude unused files from cache |
| 79 | + if: steps.cache-install.outputs.cache-hit != 'true' |
| 80 | + shell: bash |
| 81 | + run: .github/scripts/cache_exclude_windows.sh |
| 82 | + |
| 83 | + # Delete the following if you don't want to save install logs |
| 84 | + - name: Saving install logs |
| 85 | + if: steps.cache-install.outputs.cache-hit != 'true' |
| 86 | + uses: actions/upload-artifact@v2 |
| 87 | + with: |
| 88 | + name: InstallLogs_${{ github.job }} |
| 89 | + path: | |
| 90 | + extract.log |
| 91 | + bootstrapper* |
| 92 | + installer* |
| 93 | + retention-days: 7 |
0 commit comments