This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (56 loc) · 2.03 KB
/
windows-intelLLVM.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: windows-intelLLVM
env:
WINDOWS_BASEKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/62641e01-1e8d-4ace-91d6-ae03f7f8a71f/w_BaseKit_p_2024.0.0.49563_offline.exe
WINDOWS_HPCKIT_URL: https://registrationcenter-download.intel.com/akdlm/IRC_NAS/5b36181e-4974-4733-91c7-0c10c54900a5/w_HPCKit_p_2024.0.0.49588_offline.exe
WINDOWS_CPP_COMPONENTS: intel.oneapi.win.cpp-dpcpp-common
WINDOWS_FORTRAN_COMPONENTS: intel.oneapi.win.ifort-compiler
WINDOWS_DPCPP_COMPONENTS: intel.oneapi.win.cpp-dpcpp-common
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
builds-and-tests:
runs-on: windows-latest
# defaults:
# run:
# shell: bash
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: cache install oneAPI
id: cache-install
uses: actions/cache@v2
with:
path: |
C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat
C:\Program Files (x86)\Intel\oneAPI\compiler
key: install-${{ env.CACHE_NUMBER }}-${{ env.WINDOWS_HPCKIT_URL }}-${{ env.WINDOWS_FORTRAN_COMPONENTS }}-compiler-${{ hashFiles('**/scripts/cache_exclude_windows.sh') }}
- name: non-cache install oneAPI
if: steps.cache-install.outputs.cache-hit != 'true'
shell: bash
timeout-minutes: 20
run: .github/workflows/install_windows.bat $WINDOWS_HPCKIT_URL
- name: Setup ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: CMake build
shell: bash
run: |
.github/workflows/build_windows.bat
- name: Install python wrapper requirements
run: |
python -m pip install -r requirements.txt
- name: Run all tests
shell: bash
run: |
.github/workflows/run_tests_windows.bat
- name: exclude unused files from cache
if: steps.cache-install.outputs.cache-hit != 'true'
shell: bash
run: .github/workflows/oneapi_cache_exclude_windows.sh