Skip to content

Commit a088149

Browse files
committed
Testing internal ci
1 parent 66980e4 commit a088149

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/internal_ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name : Trigger Internal ci
2+
3+
on:
4+
push:
5+
branches:
6+
- '**' # Triggers on push to any branch let' see ggg hhh hh gg
7+
pull_request:
8+
branches:
9+
- '**' # Triggers on a PR to any branch
10+
11+
jobs:
12+
build:
13+
14+
runs-on: [self-hosted, Linux, X64] # Use specific runner labels fr
15+
env:
16+
BUILD_SOURCESDIRECTORY: ${{ github.workspace }}
17+
BUILD_BINARIESDIRECTORY: ${{ github.workspace }}/build
18+
OPENVINO_VERSION: '2024.3.0' # Define your OpenVINO version
19+
PROXY_HTTP: 'http://proxy-dmz.intel.com:911/' # Set your HTTP proxy
20+
PROXY_HTTPS: 'http://proxy-dmz.intel.com:912/'
21+
steps:
22+
- uses: actions/checkout@v4 #checkout to your repository
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v4 # Use the setup-python action
26+
with:
27+
python-version: '3.10'
28+
29+
- name: Create build directory
30+
run: |
31+
mkdir -p ${{ env.BUILD_BINARIESDIRECTORY }}
32+
chmod -R 777 ${{ env.BUILD_BINARIESDIRECTORY }}
33+
34+
- name: Update Docker Build Command in Script
35+
run: |
36+
docker_build_command_new='BUILD_ARGS+=" --build-arg OPENVINO_VERSION=${OPENVINO_VERSION} --build-arg http_proxy=${PROXY_HTTP} --build-arg https_proxy=${PROXY_HTTPS}"'
37+
sed -i "/--build-arg OPENVINO_VERSION=\${OPENVINO_VERSION}/c${docker_build_command_new}" tools/ci_build/github/linux/run_dockerbuild.sh
38+
39+
docker_run_command_new='$DOCKER_CMD run $RUNTIME --rm $DOCKER_RUN_PARAMETER -e http_proxy=${PROXY_HTTP} -e https_proxy=${PROXY_HTTPS} \\'
40+
sed -i "/\$DOCKER_CMD run \$RUNTIME --rm \$DOCKER_RUN_PARAMETER/c${docker_run_command_new}" tools/ci_build/github/linux/run_dockerbuild.sh
41+
shell: bash
42+
43+
- name: Running Internal CI
44+
run: |
45+
cd tools/ci_build/github/linux/
46+
dir
47+
./run_dockerbuild.sh -o ubuntu22.04 -p 3.10 -d openvino -v 2024.3.0 -x "--config RelWithDebInfo --use_openvino CPU --build_wheel --build_shared_lib --parallel --enable_pybind --skip_onnx_tests"

0 commit comments

Comments
 (0)