Skip to content

Commit 60c149b

Browse files
committed
Build with tests
1 parent 5c9cb7a commit 60c149b

File tree

2 files changed

+12
-21
lines changed

2 files changed

+12
-21
lines changed

.github/workflows/job_build_and_test_linux.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1+
name: Linux Build MLIR and Unit tests
12
on:
23
workflow_call:
34
inputs:
45
runner:
56
description: 'Machine on which the tests would run'
67
type: string
78
required: true
8-
event-name:
9-
description: 'Name of the event that triggered the workflow'
10-
type: string
11-
required: false
12-
os:
13-
description: 'OS that is used for building in the form of "ubuntu_20_04"'
14-
type: string
15-
required: true
169

1710
permissions: read-all
1811

@@ -21,7 +14,7 @@ env:
2114

2215
jobs:
2316
Build:
24-
name: Build and Test
17+
name: Build MLIR and Unit tests
2518
timeout-minutes: 240
2619
runs-on: ${{ inputs.runner }}
2720
defaults:
@@ -35,9 +28,6 @@ jobs:
3528
OPENVINO_INSTALL_DIR: ./openvino_install
3629
OPENVINO_BUILD_DIR: ./openvino_build
3730
NPU_COMPILER_BUILD_DIR: ./npu_compiler_build
38-
SCCACHE_AZURE_KEY_PREFIX: ${{ inputs.os }}_${{ inputs.arch }}_Release
39-
ARTIFACTS_SHARE: "/mount/build-artifacts"
40-
PRODUCT_TYPE: public_linux_${{ inputs.os }}_${{ inputs.arch }}_release
4131
steps:
4232
- name: Clone NPU Compiler
4333
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -50,15 +40,18 @@ jobs:
5040
- name: Get integrated OpenVINO version
5141
id: read_openvino_sha
5242
run: |
53-
COMMIT_SHA=$(cat ${NPU_COMPILER_REPO}/validation/openvino_config.json | sed -En 's/.*"[A-Za-z0-9]+"\s*:\s*"([a-f0-9]{40})".*/\1/p')
43+
GITHUB_ORG=$(cat ${NPU_COMPILER_REPO}/validation/openvino_config.json | sed -En 's/.*"([A-Za-z0-9]+)"\s*:\s*"([a-f0-9]{40})".*/\1/p')
44+
COMMIT_SHA=$(cat ${NPU_COMPILER_REPO}/validation/openvino_config.json | sed -En 's/.*"([A-Za-z0-9]+)"\s*:\s*"([a-f0-9]{40})".*/\2/p')
45+
echo "github_org=$GITHUB_ORG"
5446
echo "commit_sha=$COMMIT_SHA"
47+
echo "github_org=$GITHUB_ORG" >> $GITHUB_OUTPUT
5548
echo "commit_sha=$COMMIT_SHA" >> $GITHUB_OUTPUT
5649
5750
- name: Clone OpenVINO
5851
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5952
timeout-minutes: 15
6053
with:
61-
repository: openvinotoolkit/openvino
54+
repository: ${{ steps.read_openvino_sha.outputs.github_org }}/openvino
6255
path: ${{ env.OPENVINO_REPO }}
6356
submodules: true
6457
ref: ${{ steps.read_openvino_sha.outputs.commit_sha }}
@@ -79,7 +72,7 @@ jobs:
7972
cmake \
8073
-DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} \
8174
-DENABLE_LTO=OFF \
82-
-DENABLE_TESTS=OFF \
75+
-DENABLE_TESTS=ON \
8376
-DENABLE_INTEL_CPU=ON \
8477
-DENABLE_INTEL_GPU=ON \
8578
-DENABLE_INTEL_NPU=ON \
@@ -111,20 +104,19 @@ jobs:
111104
- name: Cmake build - OpenVINO
112105
run: |
113106
cmake --build ${OPENVINO_BUILD_DIR} --parallel $(nproc) --config ${{ env.CMAKE_BUILD_TYPE }}
114-
cmake --build ${OPENVINO_BUILD_DIR} --parallel $(nproc) --config ${{ env.CMAKE_BUILD_TYPE }} --target ov_dev_targets openvino_intel_npu_plugin compile_tool
115107
116108
- name: Cmake install - OpenVINO
117109
run: |
118110
cmake --install ${OPENVINO_BUILD_DIR} --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${OPENVINO_INSTALL_DIR}
119111
cmake --install ${OPENVINO_BUILD_DIR} --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${OPENVINO_INSTALL_DIR} --component python_wheels
120112
cmake --install ${OPENVINO_BUILD_DIR} --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${OPENVINO_INSTALL_DIR} --component tests
121-
cmake --install ${OPENVINO_BUILD_DIR} --config ${{ env.CMAKE_BUILD_TYPE }} --prefix ${OPENVINO_INSTALL_DIR} --component developer_package
122113
123114
- name: CMake configure - NPU Compiler
124115
run: |
125116
cmake \
126117
-DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} \
127118
-DOpenVINODeveloperPackage_DIR=$(realpath ${OPENVINO_BUILD_DIR}) \
119+
-DENABLE_TESTS=ON \
128120
-DENABLE_DEVELOPER_BUILD=OFF \
129121
-DENABLE_MLIR_COMPILER=ON \
130122
-DBUILD_COMPILER_FOR_DRIVER=OFF \

.github/workflows/ubuntu_24.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Linux (Ubuntu 24.04, Python 3.12)
1+
name: Linux (Ubuntu 24.04)
22
on:
33
workflow_dispatch:
44
pull_request:
@@ -13,9 +13,8 @@ concurrency:
1313
permissions: read-all
1414

1515
jobs:
16-
Build:
16+
BuildMLIR:
17+
name: Build MLIR and Test
1718
uses: ./.github/workflows/job_build_and_test_linux.yml
1819
with:
1920
runner: 'ubuntu-latest-32-cores'
20-
event-name: ${{ github.event_name }}
21-
os: 'ubuntu_24_04'

0 commit comments

Comments
 (0)