Skip to content

Commit dd2e9b1

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

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/internal_ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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: Set up Docker permissions
30+
run: |
31+
sudo groupadd -f docker
32+
sudo usermod -aG docker $USER
33+
sudo chown $USER:docker /var/run/docker.sock
34+
sudo chmod 666 /var/run/docker.sock
35+
# Verify permissions
36+
ls -l /var/run/docker.sock
37+
# Test docker access
38+
docker ps
39+
shell: bash
40+
41+
- name: Create build directory
42+
run: |
43+
mkdir -p ${{ env.BUILD_BINARIESDIRECTORY }}
44+
chmod -R 777 ${{ env.BUILD_BINARIESDIRECTORY }}
45+
46+
# - name: Update Docker Build Command in Script
47+
# run: |
48+
# docker_build_command_new='BUILD_ARGS+=" --build-arg OPENVINO_VERSION=${OPENVINO_VERSION} --build-arg http_proxy=${PROXY_HTTP} --build-arg https_proxy=${PROXY_HTTPS}"'
49+
# sed -i "/--build-arg OPENVINO_VERSION=\${OPENVINO_VERSION}/c${docker_build_command_new}" tools/ci_build/github/linux/run_dockerbuild.sh
50+
51+
# docker_run_command_new='$DOCKER_CMD run $RUNTIME --rm $DOCKER_RUN_PARAMETER -e http_proxy=${PROXY_HTTP} -e https_proxy=${PROXY_HTTPS} \\'
52+
# sed -i "/\$DOCKER_CMD run \$RUNTIME --rm \$DOCKER_RUN_PARAMETER/c${docker_run_command_new}" tools/ci_build/github/linux/run_dockerbuild.sh
53+
# shell: bash
54+
55+
- name: Running Internal CI
56+
run: |
57+
cd tools/ci_build/github/linux/
58+
dir
59+
./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)