-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/main' into Cjian/linux_c++20
- Loading branch information
Showing
2,975 changed files
with
251,375 additions
and
77,948 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
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,109 @@ | ||
name: Mac_CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- rel-* | ||
pull_request: | ||
branches: | ||
- main | ||
- rel-* | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
python_version: 3.11 | ||
xcode_version: 15.2 | ||
|
||
jobs: | ||
ARM64: | ||
runs-on: macos-14 | ||
|
||
timeout-minutes: 60 | ||
|
||
steps: | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.python_version }} | ||
|
||
- name: Verify ARM64 machine | ||
shell: python | ||
run: | | ||
import platform | ||
assert platform.machine() == "arm64", "This job expects to be run on an ARM64 machine." | ||
- name: Use Xcode ${{ env.xcode_version }} | ||
shell: bash | ||
run: | | ||
XCODE_DEVELOPER_DIR="/Applications/Xcode_${{ env.xcode_version }}.app/Contents/Developer" | ||
sudo xcode-select --switch "${XCODE_DEVELOPER_DIR}" | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build and test | ||
shell: bash | ||
run: | | ||
python ./tools/ci_build/build.py \ | ||
--build_dir ./build \ | ||
--update \ | ||
--build --parallel \ | ||
--test \ | ||
--build_shared_lib \ | ||
--build_objc \ | ||
--use_xnnpack \ | ||
--use_binskim_compliant_compile_flags | ||
# TODO add --use_coreml once unit test failures are addressed | ||
Objective-C-StaticAnalysis: | ||
runs-on: macos-14 | ||
|
||
timeout-minutes: 30 | ||
|
||
steps: | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.python_version }} | ||
|
||
- name: Use Xcode ${{ env.xcode_version }} | ||
shell: bash | ||
run: | | ||
XCODE_DEVELOPER_DIR="/Applications/Xcode_${{ env.xcode_version }}.app/Contents/Developer" | ||
sudo xcode-select --switch "${XCODE_DEVELOPER_DIR}" | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Generate compile_commands.json and ONNX protobuf files | ||
shell: bash | ||
run: | | ||
python ./tools/ci_build/build.py \ | ||
--build_dir ./build \ | ||
--cmake_generator "Unix Makefiles" \ | ||
--config Debug \ | ||
--build_shared_lib \ | ||
--use_coreml \ | ||
--build_objc \ | ||
--enable_training_apis \ | ||
--cmake_extra_defines CMAKE_EXPORT_COMPILE_COMMANDS=ON \ | ||
--use_binskim_compliant_compile_flags \ | ||
--update \ | ||
--build --parallel \ | ||
--target onnx_proto | ||
- name: Analyze Objective-C/C++ source code | ||
shell: bash | ||
run: | | ||
CLANG_TIDY_CHECKS="-*,clang-analyzer-*" | ||
"$(brew --prefix llvm@15)/bin/clang-tidy" \ | ||
-p=./build/Debug \ | ||
--checks="${CLANG_TIDY_CHECKS}" \ | ||
--warnings-as-errors="${CLANG_TIDY_CHECKS}" \ | ||
--header-filter="objectivec/include|objectivec|onnxruntime/core" \ | ||
./objectivec/*.mm \ | ||
./onnxruntime/core/platform/apple/logging/apple_log_sink.mm \ | ||
./onnxruntime/core/providers/coreml/model/*.mm |
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
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
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
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
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
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
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,39 @@ | ||
name: Close stale issues | ||
on: | ||
# Allows you to dictate when you want this workflow to run using cron syntax (times in UTC) | ||
schedule: | ||
- cron: "0 15 * * *" | ||
# Allows you to run this workflow manually from the Actions tab | ||
# workflow_dispatch: | ||
|
||
jobs: | ||
close-stale-issues: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
# Comma separated list of labels that can be assigned to issues to exclude them from being marked as stale | ||
exempt-issue-labels: contributions welcome, feature request, regression | ||
# Override exempt-all-assignees but only to exempt the issues with an assignee to be marked as stale automatically | ||
exempt-all-issue-assignees: true | ||
# Used to ignore the issues and pull requests created before the start date | ||
# Start date should be April 19, 2022 - corresponds to the day previous stale bot stopped working | ||
start-date: '2022-04-19T00:00:00Z' | ||
# Number of days without activity before the actions/stale action labels an issue | ||
days-before-issue-stale: 30 | ||
# Number of days without activity before the actions/stale action closes an issue | ||
days-before-issue-close: 30 | ||
# Label you want to apply to issues that have been inactive for the amount of time specified by days-before-issue-stale | ||
stale-issue-label: "stale" | ||
# Comment that you want to add to issues that are labeled by the actions/stale action | ||
stale-issue-message: "This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details." | ||
# Comment that you want to add to issues that are closed by the actions/stale action | ||
close-issue-message: "This issue has been automatically closed due to inactivity. Please reactivate if further support is needed." | ||
# If you never want this action to label PRs, set this value to -1 | ||
days-before-pr-stale: -1 | ||
# If you never want this action to close PRs, set this value to -1 | ||
days-before-pr-close: -1 | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.