-
-
Notifications
You must be signed in to change notification settings - Fork 4
78 lines (63 loc) · 1.8 KB
/
Copy pathoneapi-linux.yml
File metadata and controls
78 lines (63 loc) · 1.8 KB
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
72
73
74
75
76
77
78
name: oneapi-linux
env:
CC: icx
CXX: icpx
FC: ifx
# https://github.com/oneapi-src/oneapi-ci/blob/master/.github/workflows/build_all.yml
# debug triggers asan build errors, peculiar to GitHub Actions
on:
push:
paths:
- "**.c"
- "**.h"
- "**.cpp"
- "**.f90"
- "**.F90"
- "**.cmake"
- "**/CMakeLists.txt"
- ".github/workflows/oneapi-linux.yml"
- ".github/workflows/oneapi*.sh"
- "!memcheck.cmake"
- "!coverage.cmake"
- "!example/*"
workflow_dispatch:
# avoid wasted runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
runs-on: ubuntu-latest
timeout-minutes: 10
# strategy:
# matrix:
# oneapi: [2025.3]
steps:
- uses: actions/checkout@v6
- name: cache install oneAPI
id: cache-install
uses: actions/cache@v5
with:
path: |
/opt/intel/oneapi
key: oneapi-apt
- name: non-cache install oneAPI
if: steps.cache-install.outputs.cache-hit != 'true'
timeout-minutes: 5
run: |
.github/workflows/oneapi_setup_apt_repo_linux.sh
sudo apt install --no-install-recommends intel-oneapi-compiler-dpcpp-cpp intel-oneapi-compiler-fortran
- name: Setup Intel oneAPI environment
run: |
source /opt/intel/oneapi/setvars.sh
printenv >> $GITHUB_ENV
- run: cmake --workflow default
- name: Upload log failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: oneapi-${{ runner.os }}-CMakeConfigureLog.yaml
path: build/CMakeFiles/CMakeConfigureLog.yaml
- name: exclude unused files from cache
if: steps.cache-install.outputs.cache-hit != 'true'
run: .github/workflows/oneapi_cache_exclude_linux.sh