-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 1.15 KB
/
test_intel.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
name: Test Intel ifort and ifx
on:
# Trigger the workflow on push or pull request
push:
pull_request:
# Trigger the workflow at the end of every week
schedule:
- cron: '0 0 * * 0'
# Trigger the workflow when it is manually triggered
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, ubuntu-20.04, macos-latest, macos-11, macos-13]
steps:
- name: Checkout repository
uses: actions/[email protected]
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY_ACT }} # This forces checkout to use SSH, not HTTPS
submodules: recursive
- name: Install Intel oneAPI on Linux
if: startsWith(matrix.os, 'ubuntu')
run: bash .github/scripts/install_oneapi_linux.sh
- name: Install Intel oneAPI on macOS
if: startsWith(matrix.os, 'macos')
run: bash .github/scripts/install_oneapi_macos.sh
- name: Conduct the test
run: |
source /opt/intel/oneapi/setvars.sh
cd test && make itest
if [[ "$RUNNER_OS" = "Linux" ]] ; then
make xtest
fi