-
Notifications
You must be signed in to change notification settings - Fork 117
/
action.yml
48 lines (42 loc) · 1.83 KB
/
action.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
name: Setup oneAPI for parallel MF6
description: Setup oneAPI components for parallel MODFLOW 6
runs:
using: "composite"
steps:
- name: Get date
id: get-date
shell: bash
run: echo "date=$(/bin/date -u "+%Y%m%d")" >> "$GITHUB_OUTPUT"
- name: Set oneAPI install dir
shell: bash
run: echo "ONEAPI_ROOT=C:\Program Files (x86)\Intel\oneAPI" >> "$GITHUB_ENV"
- name: Restore oneAPI cache
id: oneapi-cache
uses: actions/cache/restore@v3
with:
path: ${{ env.ONEAPI_ROOT }}
key: oneapi-${{ runner.os }}-${{ steps.get-date.outputs.date }}
- name: Install oneAPI BaseKit
shell: bash
if: steps.oneapi-cache.outputs.cache-hit != 'true'
run: |
url="https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7dff44ba-e3af-4448-841c-0d616c8da6e7/w_BaseKit_p_2024.1.0.595_offline.exe"
cmp="intel.oneapi.win.mkl.devel"
"$GITHUB_WORKSPACE/modflow6/.github/common/install_intel_windows.bat" $url $cmp
rm -rf $TEMP/webimage.exe
rm -rf $TEMP/webimage_extracted
- name: Install oneAPI HPCKit
shell: bash
if: steps.oneapi-cache.outputs.cache-hit != 'true'
run: |
url="https://registrationcenter-download.intel.com/akdlm/IRC_NAS/c95a3b26-fc45-496c-833b-df08b10297b9/w_HPCKit_p_2024.1.0.561_offline.exe"
cmp="intel.oneapi.win.cpp-dpcpp-common:intel.oneapi.win.ifort-compiler:intel.oneapi.win.mpi.devel"
"$GITHUB_WORKSPACE/modflow6/.github/common/install_intel_windows.bat" $url $cmp
rm -rf $TEMP/webimage.exe
rm -rf $TEMP/webimage_extracted
- name: Save oneAPI cache
if: steps.oneapi-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: ${{ env.ONEAPI_ROOT }}
key: oneapi-${{ runner.os }}-${{ steps.get-date.outputs.date }}