36
36
INSTALL_DIR_JS : ${{ github.workspace }}/openvino_install/js
37
37
INSTALL_TEST_DIR : ${{ github.workspace }}/tests_install
38
38
BUILD_DIR : ${{ github.workspace }}/build
39
+ CCACHE_DIR : ${{ github.workspace }}/ccache
40
+ CCACHE_MAXSIZE : ' 2G'
39
41
GRADLE_VER : ' 7.1.1'
40
42
steps :
41
43
- name : Clone OpenVINO
64
66
#
65
67
66
68
- name : Install build dependencies
67
- run : brew install coreutils ninja scons automake gradle
69
+ run : brew install coreutils ninja scons automake gradle ccache
68
70
69
71
- name : Setup Python ${{ env.PYTHON_VERSION }}
70
72
uses : actions/setup-python@v5
@@ -79,16 +81,15 @@ jobs:
79
81
#
80
82
81
83
- name : Setup ccache
82
- uses : hendrikmuhs/ccache-action@v1.2
84
+ uses : actions/cache@v4
83
85
with :
84
- max-size : " 2000M"
85
86
# Should save cache only if run in the master branch of the base repo
86
87
# github.ref_name is 'ref/PR_#' in case of the PR, and 'branch_name' when executed on push
87
- save : ${{ github.ref_name == 'master' && 'true' || 'false' }}
88
- verbose : 2
89
- key : ${{ runner.os }}-${{ runner.arch }}-main
88
+ save-always : ${{ github.ref_name == 'master' && 'true' || 'false' }}
89
+ path : ${{ env.CCACHE_DIR }}
90
+ key : ${{ runner.os }}-${{ runner.arch }}-ccache-${{ github.sha }}
90
91
restore-keys : |
91
- ${{ runner.os }}-${{ runner.arch }}-main
92
+ ${{ runner.os }}-${{ runner.arch }}-ccache
92
93
93
94
- name : CMake configure
94
95
run : |
@@ -107,6 +108,7 @@ jobs:
107
108
-DENABLE_OV_TF_LITE_FRONTEND=OFF \
108
109
-DENABLE_OV_PYTORCH_FRONTEND=OFF \
109
110
-DENABLE_CPPLINT=OFF \
111
+ -DENABLE_INTEL_NPU=OFF \
110
112
-S ${{ env.OPENVINO_REPO }} \
111
113
-B ${{ env.BUILD_DIR }}
112
114
0 commit comments