Skip to content

Commit e22739f

Browse files
authored
Use dotnet instead of nuget in mac build (microsoft#1717)
1 parent b6d74e2 commit e22739f

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.github/workflows/linux-cpu-arm64-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
run: |
5252
dotnet new console
5353
dotnet add package ${{ env.ORT_PACKAGE_NAME }} --version ${{ env.ORT_NIGHTLY_VERSION }} --source ${{ env.ORT_NIGHTLY_SOURCE }} --package-directory .
54-
dotnet build
5554
continue-on-error: true
5655

5756
- name: list files

.github/workflows/linux-cpu-x64-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ jobs:
7070
run: |
7171
dotnet new console
7272
dotnet add package ${{ env.ORT_PACKAGE_NAME }} --version ${{ env.ORT_NIGHTLY_VERSION }} --source ${{ env.ORT_NIGHTLY_SOURCE }} --package-directory .
73-
dotnet build
7473
continue-on-error: true
7574

7675
- name: list files

.github/workflows/linux-gpu-x64-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ jobs:
8181
run: |
8282
dotnet new console
8383
dotnet add package ${{ env.ORT_PACKAGE_NAME }} --version ${{ env.ORT_NIGHTLY_VERSION }} --source ${{ env.ORT_NIGHTLY_SOURCE }} --package-directory .
84-
dotnet build
8584
continue-on-error: true
8685

8786
- name: list files

.github/workflows/mac-cpu-arm64-build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ concurrency:
1111
cancel-in-progress: true
1212
env:
1313
ORT_NIGHTLY_REST_API: "https://feeds.dev.azure.com/aiinfra/PublicPackages/_apis/packaging/Feeds/ORT-Nightly/packages?packageNameQuery=Microsoft.ML.OnnxRuntime&api-version=6.0-preview.1"
14+
ORT_NIGHTLY_SOURCE: "https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/nuget/v3/index.json"
1415
ORT_PACKAGE_NAME: "Microsoft.ML.OnnxRuntime"
1516
jobs:
1617
mac-cpu-arm64-build:
@@ -44,13 +45,14 @@ jobs:
4445
echo "ORT_NIGHTLY_VERSION=$ORT_NIGHTLY_VERSION" >> $GITHUB_ENV
4546
- name: Download OnnxRuntime Nightly
4647
run: |
47-
nuget install ${{ env.ORT_PACKAGE_NAME }} -version ${{ env.ORT_NIGHTLY_VERSION }} -x
48+
dotnet new console
49+
dotnet add package ${{ env.ORT_PACKAGE_NAME }} --version ${{ env.ORT_NIGHTLY_VERSION }} --source ${{ env.ORT_NIGHTLY_SOURCE }} --package-directory .
4850
4951
- name: Extract OnnxRuntime library and header files
5052
run: |
5153
mkdir -p ort/lib
52-
mv ${{ env.ORT_PACKAGE_NAME }}/build/native/include ort/
53-
mv ${{ env.ORT_PACKAGE_NAME }}/runtimes/osx-arm64/native/* ort/lib/
54+
mv ${{ env.ORT_PACKAGE_NAME }}/${{ env.ORT_NIGHTLY_VERSION }}/build/native/include ort/
55+
mv ${{ env.ORT_PACKAGE_NAME }}/${{ env.ORT_NIGHTLY_VERSION }}/runtimes/osx-arm64/native/* ort/lib/
5456
5557
- name: Install Rust Toolchain
5658
run: |

0 commit comments

Comments
 (0)