Skip to content

Commit 475c985

Browse files
committed
dotnet oreder to build
1 parent 13867f4 commit 475c985

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@ jobs:
1414
with:
1515
submodules: recursive
1616

17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: 9.0.x
21+
22+
- name: Show .NET info
23+
run: dotnet --info
24+
25+
- name: Restore dependencies
26+
run: dotnet restore MLXSharp.sln
27+
28+
- name: Build C# projects (initial validation)
29+
run: dotnet build MLXSharp.sln --configuration Release --no-restore
30+
1731
- name: Install CMake
1832
run: brew install cmake
1933

@@ -39,21 +53,7 @@ jobs:
3953
mkdir -p src/MLXSharp.Native/runtimes/osx-arm64/native
4054
cp native/build/libmlxsharp.dylib src/MLXSharp.Native/runtimes/osx-arm64/native/
4155
42-
- name: Setup .NET
43-
uses: actions/setup-dotnet@v4
44-
with:
45-
dotnet-version: 9.0.x
46-
47-
- name: Show .NET info
48-
run: dotnet --info
49-
50-
- name: Restore dependencies
51-
run: dotnet restore MLXSharp.sln
52-
53-
- name: Build C# projects (initial validation)
54-
run: dotnet build MLXSharp.sln --configuration Release --no-restore
55-
56-
- name: Build with native libraries
56+
- name: Rebuild with native libraries
5757
run: dotnet build MLXSharp.sln --configuration Release --no-restore
5858

5959
- name: Copy native library to test output

0 commit comments

Comments
 (0)