Skip to content

Commit

Permalink
test lin
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov committed Mar 21, 2024
1 parent ba23cb0 commit b4bf6ea
Showing 1 changed file with 30 additions and 8 deletions.
38 changes: 30 additions & 8 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +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
CMAKE_CXX_COMPILER_LAUNCHER: ccache
CMAKE_C_COMPILER_LAUNCHER: ccache
CCACHE_REMOTE_DIR: /mount/caches/ccache/ubuntu20_linux
CCACHE_DIR: /__w/openvino/openvino/ccache
CCACHE_TEMPDIR: /__w/openvino/openvino/ccache_temp
CCACHE_MAXSIZE: 5G
SCCACHE_IGNORE_SERVER_IO_ERROR: 1
SCCACHE_SERVER_PORT: 35555
SCCACHE_ERROR_LOG: /__w/openvino/sccache_log.txt
Expand Down Expand Up @@ -154,6 +158,21 @@ jobs:
# Build
#

- name: Setup ccache
id: ccache_restore
uses: ./openvino/.github/actions/cache
with:
save-always: true
cleanup-always: true
max-cache-size: 5
cache-path: ${{ env.CCACHE_REMOTE_DIR }}
path: ${{ env.CCACHE_DIR }}
key: ${{ runner.os }}-${{ runner.arch }}-ccache-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-ccache
- name: CMake configure - OpenVINO
run: |
cmake \
Expand All @@ -172,14 +191,17 @@ jobs:
-S ${OPENVINO_REPO} \
-B ${BUILD_DIR}
- name: Clean sccache stats
run: ${SCCACHE_PATH} --zero-stats
- name: Clean ccache stats
run: ccache --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 ccache stats
run: ccache --show-stats

- name: Clean ccache
run: ccache --cleanup --evict-older-than 7200s

- name: Cmake install - OpenVINO
run: |
Expand Down Expand Up @@ -419,7 +441,7 @@ jobs:
name: conformance_artifacts_${{ matrix.TEST_TYPE }}-${{ env.TEST_DEVICE }}
path: ${{ env.CONFORMANCE_ARTIFACTS_DIR }}/conformance_artifacts.tar.gz
if-no-files-found: 'error'

- name: Mandatory API Conformance Tests (Template)
if: ${{ matrix.TEST_TYPE == 'API' }}
run: |
Expand All @@ -444,7 +466,7 @@ jobs:
with:
name: conformance_artifacts_${{ matrix.TEST_TYPE }}-TEMPLATE
path: ${{ env.CONFORMANCE_ARTIFACTS_DIR }}/conformance_artifacts.tar.gz
if-no-files-found: 'error'
if-no-files-found: 'error'

ONNX_Runtime:
name: ONNX Runtime Integration
Expand Down

0 comments on commit b4bf6ea

Please sign in to comment.