File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,19 @@ jobs:
38
38
${{ runner.os }}-cmake-${{ matrix.compiler }}-${{ matrix.cxx_version }}-
39
39
${{ runner.os }}-cmake-${{ matrix.compiler }}-
40
40
41
+ - name : Cache Compiler
42
+ uses : actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
43
+ with :
44
+ path : /opt/intel
45
+ key : ${{ runner.os }}-compiler-intel-${{ matrix.compiler }}-${{ matrix.cxx_version }}
46
+ restore-keys : |
47
+ ${{ runner.os }}-compiler-intel-
48
+
41
49
- name : install dependencies
42
50
run : sudo apt install -yqq ninja-build
43
51
44
52
- name : Install compiler
53
+ if : steps.cache-compiler.outputs.cache-hit != 'true'
45
54
run : |
46
55
wget --progress=dot:giga https://registrationcenter-download.intel.com/akdlm/IRC_NAS/ac92f2bb-4818-4e53-a432-f8b34d502f23/intel-dpcpp-cpp-compiler-2025.0.0.740_offline.sh
47
56
sudo bash intel-dpcpp-cpp-compiler-2025.0.0.740_offline.sh -s -a -s --action install --eula accept
51
60
source /opt/intel/oneapi/setvars.sh
52
61
cmake -S . --preset=${{matrix.compiler}} -B build -DCMAKE_CXX_STANDARD=${{matrix.cxx_version}}
53
62
54
-
55
63
- name : build
56
64
run : |
57
65
source /opt/intel/oneapi/setvars.sh
80
88
path : build
81
89
key : ${{ runner.os }}-cmake-${{ matrix.compiler }}-${{ matrix.cxx_version }}-${{ matrix.target }}
82
90
91
+ - name : Cache Compiler
92
+ uses : actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
93
+ with :
94
+ path : /opt/intel
95
+ key : ${{ runner.os }}-compiler-intel-${{ matrix.compiler }}-${{ matrix.cxx_version }}
96
+
83
97
- name : test
84
98
run : |
85
99
source /opt/intel/oneapi/setvars.sh
You can’t perform that action at this time.
0 commit comments