Skip to content

Commit

Permalink
reuse build wf
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-intel committed Dec 15, 2024
1 parent bcb7ea4 commit 9849287
Showing 1 changed file with 98 additions and 98 deletions.
196 changes: 98 additions & 98 deletions .github/workflows/dev_cpu_linux_riscv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,50 +143,50 @@ jobs:
ln -s /usr/include/riscv64-linux-gnu/ /usr/include/python3.10/
popd
# - name: CMake configure - OpenVINO - 2
# run: |
# cmake \
# -G "${{ env.CMAKE_GENERATOR }}" \
# -DENABLE_CPPLINT=OFF \
# -DENABLE_NCC_STYLE=OFF \
# -DENABLE_TESTS=ON \
# -DENABLE_INTEL_CPU=ON \
# -DENABLE_INTEL_GPU=OFF \
# -DENABLE_INTEL_NPU=OFF \
# -DENABLE_SAMPLES=ON \
# -DCMAKE_TOOLCHAIN_FILE=${OPENVINO_REPO}/cmake/toolchains/riscv64-071-xuantie-gnu.toolchain.cmake \
# -DRISCV_TOOLCHAIN_ROOT=${XUANTIE_DIR}/${XUANTIE_TAR_NAME} \
# -DENABLE_PYTHON=ON \
# -DENABLE_PYTHON_PACKAGING=ON \
# -DENABLE_WHEEL=ON \
# -DENABLE_STRICT_DEPENDENCIES=OFF \
# -DCMAKE_VERBOSE_MAKEFILE=ON \
# -DCPACK_GENERATOR=TGZ \
# -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
# -DCMAKE_CXX_COMPILER_LAUNCHER=${{ env.CMAKE_CXX_COMPILER_LAUNCHER }} \
# -DCMAKE_C_COMPILER_LAUNCHER=${{ env.CMAKE_C_COMPILER_LAUNCHER }} \
# -S ${OPENVINO_REPO} \
# -B ${BUILD_DIR}
- name: CMake configure - OpenVINO - 2
run: |
cmake \
-G "${{ env.CMAKE_GENERATOR }}" \
-DENABLE_CPPLINT=OFF \
-DENABLE_NCC_STYLE=OFF \
-DENABLE_TESTS=ON \
-DENABLE_INTEL_CPU=ON \
-DENABLE_INTEL_GPU=OFF \
-DENABLE_INTEL_NPU=OFF \
-DENABLE_SAMPLES=ON \
-DCMAKE_TOOLCHAIN_FILE=${OPENVINO_REPO}/cmake/toolchains/riscv64-071-xuantie-gnu.toolchain.cmake \
-DRISCV_TOOLCHAIN_ROOT=${XUANTIE_DIR}/${XUANTIE_TAR_NAME} \
-DENABLE_PYTHON=ON \
-DENABLE_PYTHON_PACKAGING=ON \
-DENABLE_WHEEL=ON \
-DENABLE_STRICT_DEPENDENCIES=OFF \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCPACK_GENERATOR=TGZ \
-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
-DCMAKE_CXX_COMPILER_LAUNCHER=${{ env.CMAKE_CXX_COMPILER_LAUNCHER }} \
-DCMAKE_C_COMPILER_LAUNCHER=${{ env.CMAKE_C_COMPILER_LAUNCHER }} \
-S ${OPENVINO_REPO} \
-B ${BUILD_DIR}
# - name: Cmake build - OpenVINO
# run: cmake --build ${BUILD_DIR} --parallel --config ${{ env.CMAKE_BUILD_TYPE }}
- name: Cmake build - OpenVINO
run: cmake --build ${BUILD_DIR} --parallel --config ${{ env.CMAKE_BUILD_TYPE }}

# - name: Cmake install - OpenVINO
# run: |
# cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -P ${BUILD_DIR}/cmake_install.cmake
# cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_TEST_DIR} -DCOMPONENT=tests -P ${BUILD_DIR}/cmake_install.cmake
# cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCOMPONENT=python_wheels -P ${BUILD_DIR}/cmake_install.cmake
- name: Cmake install - OpenVINO
run: |
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -P ${BUILD_DIR}/cmake_install.cmake
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_TEST_DIR} -DCOMPONENT=tests -P ${BUILD_DIR}/cmake_install.cmake
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCOMPONENT=python_wheels -P ${BUILD_DIR}/cmake_install.cmake
# - name: Pack Artifacts
# run: |
- name: Pack Artifacts
run: |
# pushd ${INSTALL_DIR}
# tar -czvf ${BUILD_DIR}/openvino_package.tar.gz *
# popd
pushd ${INSTALL_DIR}
tar -czvf ${BUILD_DIR}/openvino_package.tar.gz *
popd
# pushd ${INSTALL_TEST_DIR}
# tar -czvf ${BUILD_DIR}/openvino_tests.tar.gz *
# popd
pushd ${INSTALL_TEST_DIR}
tar -czvf ${BUILD_DIR}/openvino_tests.tar.gz *
popd
# #
# # Upload build artifacts and logs
Expand All @@ -199,68 +199,68 @@ jobs:
path: ${{ env.XUANTIE_DIR }}
if-no-files-found: 'ignore'

# - name: Upload build logs
# uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
# if: always()
# with:
# name: build_logs
# path: ${{ env.SCCACHE_ERROR_LOG }}
# if-no-files-found: 'ignore'
- name: Upload build logs
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
if: always()
with:
name: build_logs
path: ${{ env.SCCACHE_ERROR_LOG }}
if-no-files-found: 'ignore'

# - name: Upload openvino package
# if: ${{ always() }}
# uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
# with:
# name: openvino_package
# path: ${{ env.BUILD_DIR }}/openvino_package.tar.gz
# if-no-files-found: 'error'
- name: Upload openvino package
if: ${{ always() }}
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
with:
name: openvino_package
path: ${{ env.BUILD_DIR }}/openvino_package.tar.gz
if-no-files-found: 'error'

# - name: Upload openvino tests package
# if: ${{ always() }}
# uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
# with:
# name: openvino_tests
# path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
# if-no-files-found: 'error'
- name: Upload openvino tests package
if: ${{ always() }}
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
with:
name: openvino_tests
path: ${{ env.BUILD_DIR }}/openvino_tests.tar.gz
if-no-files-found: 'error'

# - name: Clean ccache
# run: ccache --cleanup
- name: Clean ccache
run: ccache --cleanup

Build_2:
needs: [Docker, Smart_CI]
uses: ./.github/workflows/job_build_linux.yml
with:
runner: 'aks-linux-16-cores-32gb'
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_riscv }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
affected-components: ${{ needs.smart_ci.outputs.affected_components }}
event-name: ${{ github.event_name }}
os: 'ubuntu_22_04'
build-js: false
build-contrib: false
build-debian-packages: true
build-rpm-packages: false
cmake-options: |-
-G "${{ env.CMAKE_GENERATOR }}" \
-DENABLE_CPPLINT=OFF \
-DENABLE_NCC_STYLE=OFF \
-DENABLE_TESTS=ON \
-DENABLE_INTEL_CPU=ON \
-DENABLE_INTEL_GPU=OFF \
-DENABLE_INTEL_NPU=OFF \
-DENABLE_SAMPLES=ON \
-DCMAKE_TOOLCHAIN_FILE=${OPENVINO_REPO}/cmake/toolchains/riscv64-071-xuantie-gnu.toolchain.cmake \
-DRISCV_TOOLCHAIN_ROOT=${XUANTIE_DIR}/${XUANTIE_TAR_NAME} \
-DENABLE_PYTHON=ON \
-DENABLE_PYTHON_PACKAGING=ON \
-DENABLE_WHEEL=ON \
-DENABLE_STRICT_DEPENDENCIES=OFF \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCPACK_GENERATOR=TGZ \
-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
-DCMAKE_CXX_COMPILER_LAUNCHER=${{ env.CMAKE_CXX_COMPILER_LAUNCHER }} \
-DCMAKE_C_COMPILER_LAUNCHER=${{ env.CMAKE_C_COMPILER_LAUNCHER }} \
-S ${OPENVINO_REPO} \
-B ${BUILD_DIR}
# Build_2:
# needs: [Docker, Smart_CI]
# uses: ./.github/workflows/job_build_linux.yml
# with:
# runner: 'aks-linux-16-cores-32gb'
# container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_riscv }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}'
# affected-components: ${{ needs.smart_ci.outputs.affected_components }}
# event-name: ${{ github.event_name }}
# os: 'ubuntu_22_04'
# build-js: false
# build-contrib: false
# build-debian-packages: true
# build-rpm-packages: false
# cmake-options: |-
# -G "${{ env.CMAKE_GENERATOR }}" \
# -DENABLE_CPPLINT=OFF \
# -DENABLE_NCC_STYLE=OFF \
# -DENABLE_TESTS=ON \
# -DENABLE_INTEL_CPU=ON \
# -DENABLE_INTEL_GPU=OFF \
# -DENABLE_INTEL_NPU=OFF \
# -DENABLE_SAMPLES=ON \
# -DCMAKE_TOOLCHAIN_FILE=${OPENVINO_REPO}/cmake/toolchains/riscv64-071-xuantie-gnu.toolchain.cmake \
# -DRISCV_TOOLCHAIN_ROOT=${XUANTIE_DIR}/${XUANTIE_TAR_NAME} \
# -DENABLE_PYTHON=ON \
# -DENABLE_PYTHON_PACKAGING=ON \
# -DENABLE_WHEEL=ON \
# -DENABLE_STRICT_DEPENDENCIES=OFF \
# -DCMAKE_VERBOSE_MAKEFILE=ON \
# -DCPACK_GENERATOR=TGZ \
# -DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
# -DCMAKE_CXX_COMPILER_LAUNCHER=${{ env.CMAKE_CXX_COMPILER_LAUNCHER }} \
# -DCMAKE_C_COMPILER_LAUNCHER=${{ env.CMAKE_C_COMPILER_LAUNCHER }} \
# -S ${OPENVINO_REPO} \
# -B ${BUILD_DIR}

CPU_Functional_Tests:
name: CPU functional tests
Expand Down Expand Up @@ -331,4 +331,4 @@ jobs:

- name: Upload Test Results
run: |
echo 'to do'
echo 'to - do'

0 comments on commit 9849287

Please sign in to comment.