|
1 | | -name: CI |
2 | | - |
3 | | -concurrency: |
4 | | - group: onnxruntime-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
5 | | - cancel-in-progress: true |
| 1 | +name: CI && Release & Upload Wheel |
6 | 2 |
|
7 | 3 | on: |
8 | 4 | workflow_call: |
|
16 | 12 | default: "main" |
17 | 13 | workflow_dispatch: |
18 | 14 | inputs: |
19 | | - is_experimental: |
20 | | - description: "Create an experimental build" |
21 | | - type: boolean |
22 | | - default: false |
23 | 15 | onnxruntime_branch: |
24 | 16 | type: string |
25 | 17 | default: "main" |
|
30 | 22 | branches: |
31 | 23 | - main |
32 | 24 |
|
33 | | -env: |
34 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
35 | | - |
36 | 25 | jobs: |
37 | 26 | build_and_upload_wheel_linux: |
38 | 27 | runs-on: The_CTOs_Choice |
|
45 | 34 | with: |
46 | 35 | repository: quadric-io/onnxruntime |
47 | 36 | ref: ${{ inputs.onnxruntime_branch || github.ref }} |
48 | | - token: ${{ secrets.GH_PAT }} |
49 | 37 |
|
50 | 38 | - name: Fetch sha |
51 | 39 | id: fetch_sha |
|
58 | 46 | working-directory: /workspace |
59 | 47 | run: | |
60 | 48 | python3 -m pip install "cmake<4" |
61 | | -
|
62 | | - # Always run tests - no skipping for any scenario |
63 | | - test_args="" |
64 | | -
|
65 | | - ./build.sh --build_wheel --config Release --parallel $test_args --skip_submodule_sync --allow_running_as_root --compile_no_warning_as_error |
| 49 | + ./build.sh --build_wheel --config Release --parallel --skip_submodule_sync --allow_running_as_root --compile_no_warning_as_error |
66 | 50 |
|
67 | 51 | wheel_path=$(find . -name '*.whl' | xargs readlink -f) |
68 | 52 | echo "wheel_path=$wheel_path" >> $GITHUB_ENV |
|
82 | 66 | with: |
83 | 67 | repository: quadric-io/onnxruntime |
84 | 68 | ref: ${{ inputs.onnxruntime_branch || github.ref }} |
85 | | - token: ${{ secrets.GH_PAT }} |
86 | 69 |
|
87 | 70 | - name: Fetch sha |
88 | 71 | id: fetch_sha |
|
98 | 81 |
|
99 | 82 | - name: Build ONNX Runtime wheel |
100 | 83 | run: | |
101 | | - # Always run tests - no skipping for any scenario |
102 | | - test_args="" |
103 | | -
|
104 | | - ./build.sh --build_wheel --config Release --parallel $test_args --skip_submodule_sync --compile_no_warning_as_error --skip_submodule_sync --apple_deploy_target 12 |
| 84 | + ./build.sh --build_wheel --config Release --parallel --skip_submodule_sync --compile_no_warning_as_error --skip_submodule_sync --apple_deploy_target 12 |
105 | 85 |
|
106 | 86 | wheel_path=$(find . -name '*.whl' | xargs readlink -f) |
107 | 87 | echo "wheel_path=$wheel_path" >> $GITHUB_ENV |
|
0 commit comments