forked from microsoft/onnxruntime
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e46c0d8
commit e85411a
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name : Internal CI | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- '**' # Triggers on a PR to any Branch | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
build: | ||
|
||
if: github.event.pull_request.draft == false | ||
runs-on: [self-hosted, Linux, X64] # Runs on a Lunar lake | ||
env: | ||
BUILD_SOURCESDIRECTORY: ${{ github.workspace }} | ||
BUILD_BINARIESDIRECTORY: ${{ github.workspace }}/build | ||
|
||
steps: | ||
- name: Check PR Author Authorization | ||
run: | | ||
if [[ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]]; then | ||
echo "PR is from a fork: ${{ github.event.pull_request.head.repo.full_name }}" | ||
fi | ||
- name: Checkout PR Branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
fetch-depth: 1 # checkout the pr branch | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Create build directory | ||
run: | | ||
mkdir -p ${{ env.BUILD_BINARIESDIRECTORY }} | ||
chmod -R 777 ${{ env.BUILD_BINARIESDIRECTORY }} | ||
- name: Running Internal CI # Trigger Internal CI on the pr branch | ||
run: | | ||
cd tools/ci_build/github/linux/ | ||
dir | ||
./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 " |