File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Internal CI
2+
3+ on :
4+ pull_request_target :
5+ branches :
6+ - ' **' # Triggers on a PR to any Branch
7+
8+ permissions :
9+ contents : read
10+ pull-requests : read
11+
12+ jobs :
13+ build :
14+
15+ if : github.event.pull_request.draft == false
16+ runs-on : [self-hosted, Linux, X64] # Runs on a Lunar lake
17+ env :
18+ BUILD_SOURCESDIRECTORY : ${{ github.workspace }}
19+ BUILD_BINARIESDIRECTORY : ${{ github.workspace }}/build
20+
21+ steps :
22+ - name : Check PR Author Authorization
23+ run : |
24+ if [[ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]]; then
25+ echo "PR is from a fork: ${{ github.event.pull_request.head.repo.full_name }}"
26+ fi
27+
28+ - name : Checkout PR Branch
29+ uses : actions/checkout@v4
30+ with :
31+ ref : ${{ github.event.pull_request.head.ref }}
32+ repository : ${{ github.event.pull_request.head.repo.full_name }}
33+ fetch-depth : 1 # checkout the pr branch
34+
35+ - name : Set up Python
36+ uses : actions/setup-python@v4
37+ with :
38+ python-version : ' 3.10'
39+
40+ - name : Create build directory
41+ run : |
42+ mkdir -p ${{ env.BUILD_BINARIESDIRECTORY }}
43+ chmod -R 777 ${{ env.BUILD_BINARIESDIRECTORY }}
44+
45+ - name : Running Internal CI # Trigger Internal CI on the pr branch
46+ run : |
47+ cd tools/ci_build/github/linux/
48+ dir
49+ ./run_dockerbuild.sh -o ubuntu22.04 -p 3.10 -d openvino -v 2024.5.0 -x "--config Release --use_openvino CPU --build_wheel --build_shared_lib --parallel "
You can’t perform that action at this time.
0 commit comments