forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not use sccache, use \0 for termination
- Loading branch information
Showing
2 changed files
with
24 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,12 +61,12 @@ jobs: | |
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input | ||
CMAKE_BUILD_TYPE: 'Release' | ||
CMAKE_GENERATOR: 'Ninja Multi-Config' | ||
CMAKE_CXX_COMPILER_LAUNCHER: sccache | ||
CMAKE_C_COMPILER_LAUNCHER: sccache | ||
SCCACHE_IGNORE_SERVER_IO_ERROR: 1 | ||
SCCACHE_SERVER_PORT: 35555 | ||
SCCACHE_ERROR_LOG: /__w/openvino/sccache_log.txt | ||
SCCACHE_LOG: warn | ||
# CMAKE_CXX_COMPILER_LAUNCHER: sccache | ||
# CMAKE_C_COMPILER_LAUNCHER: sccache | ||
# SCCACHE_IGNORE_SERVER_IO_ERROR: 1 | ||
# SCCACHE_SERVER_PORT: 35555 | ||
# SCCACHE_ERROR_LOG: /__w/openvino/sccache_log.txt | ||
# SCCACHE_LOG: warn | ||
GITHUB_WORKSPACE: '/__w/openvino/openvino' | ||
OPENVINO_REPO: /__w/openvino/openvino/openvino | ||
OPENVINO_CONTRIB_REPO: /__w/openvino/openvino/openvino_contrib | ||
|
@@ -75,7 +75,7 @@ jobs: | |
INSTALL_TEST_DIR: /__w/openvino/openvino/tests_install | ||
DEVELOPER_PACKAGE_DIR: /__w/openvino/openvino/developer_package_install | ||
BUILD_DIR: /__w/openvino/openvino/openvino_build | ||
SCCACHE_AZURE_KEY_PREFIX: ubuntu20_x86_64_Release | ||
# SCCACHE_AZURE_KEY_PREFIX: ubuntu20_x86_64_Release | ||
ONNX_RUNTIME_UTILS: /__w/openvino/openvino/openvino/src/frontends/onnx/tests/ci_utils/onnxruntime | ||
if: "!needs.smart_ci.outputs.skip_workflow" | ||
|
||
|
@@ -119,10 +119,10 @@ jobs: | |
# default-jdk - Java API | ||
apt install --assume-yes --no-install-recommends default-jdk | ||
- name: Install sccache | ||
uses: mozilla-actions/[email protected] | ||
with: | ||
version: "v0.7.5" | ||
# - name: Install sccache | ||
# uses: mozilla-actions/[email protected] | ||
# with: | ||
# version: "v0.7.5" | ||
|
||
- name: Setup Python ${{ env.PYTHON_VERSION }} | ||
uses: ./openvino/.github/actions/setup_python | ||
|
@@ -167,20 +167,18 @@ jobs: | |
-DCMAKE_VERBOSE_MAKEFILE=ON \ | ||
-DCPACK_GENERATOR=TGZ \ | ||
-DCMAKE_COMPILE_WARNING_AS_ERROR=ON \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=${{ env.CMAKE_CXX_COMPILER_LAUNCHER }} \ | ||
-DCMAKE_C_COMPILER_LAUNCHER=${{ env.CMAKE_C_COMPILER_LAUNCHER }} \ | ||
-DENABLE_SANITIZER=ON \ | ||
-S ${OPENVINO_REPO} \ | ||
-B ${BUILD_DIR} | ||
- name: Clean sccache stats | ||
run: ${SCCACHE_PATH} --zero-stats | ||
# - name: Clean sccache stats | ||
# run: ${SCCACHE_PATH} --zero-stats | ||
|
||
- name: Cmake build - OpenVINO | ||
run: cmake --build ${BUILD_DIR} --parallel --config ${{ env.CMAKE_BUILD_TYPE }} | ||
|
||
- name: Show sccache stats | ||
run: ${SCCACHE_PATH} --show-stats | ||
# - name: Show sccache stats | ||
# run: ${SCCACHE_PATH} --show-stats | ||
|
||
- name: Cmake install - OpenVINO | ||
run: | | ||
|
@@ -243,13 +241,13 @@ jobs: | |
# | ||
# Upload build artifacts and logs | ||
# | ||
- name: Upload build logs | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: build_logs | ||
path: ${{ env.SCCACHE_ERROR_LOG }} | ||
if-no-files-found: 'ignore' | ||
# - name: Upload build logs | ||
# uses: actions/upload-artifact@v3 | ||
# if: always() | ||
# with: | ||
# name: build_logs | ||
# path: ${{ env.SCCACHE_ERROR_LOG }} | ||
# if-no-files-found: 'ignore' | ||
|
||
- name: Upload openvino package | ||
if: ${{ always() }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters