diff options
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2bdc65a..d02cdc4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,3 +1,16 @@ +# intel oneapi installation is based on the examples at +# https://github.com/oneapi-src/oneapi-ci +# +# and are copyrighted: +# +# SPDX-FileCopyrightText: 2020 Intel Corporation +# SPDX-License-Identifier: MIT +# +# The rest of this file contains the standard Meson project copyright: +# +# SPDX-License-Identifer: Apache-2.0 +# Copyright 2022 The Meson development team + name: $(BuildID) trigger: @@ -35,6 +48,8 @@ pr: variables: CI: 1 SOURCE_VERSION: $(Build.SourceVersion) + WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/18680/w_HPCKit_p_2022.2.0.173_offline.exe + WINDOWS_FORTRAN_COMPONENTS: intel.oneapi.win.ifort-compiler jobs: @@ -60,6 +75,19 @@ jobs: backend: ninja steps: + - task: Cache@2 + inputs: + path: | + C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat + C:\Program Files (x86)\Intel\oneAPI\compiler + key: '"vcvars" | "install" | "$(WINDOWS_HPCKIT_URL)" | "$(WINDOWS_FORTRAN_COMPONENTS)" | "compiler" | scripts/cache_exclude_windows.sh' + cacheHitVar: CACHE_RESTORED + - script: ci/intel-scripts/install_windows.bat $(WINDOWS_HPCKIT_URL) $(WINDOWS_FORTRAN_COMPONENTS) + displayName: install ifort + condition: ne(variables.CACHE_RESTORED, 'true') + - bash: ci/intel-scripts/cache_exclude_windows.sh + displayName: exclude unused files from cache + condition: ne(variables.CACHE_RESTORED, 'true') - task: UsePythonVersion@0 inputs: versionSpec: '3.7' |