@@ -15,10 +15,18 @@ jobs:
1515 runs-on : ${{ matrix.os }}
1616 strategy :
1717 matrix :
18- os : [ubuntu-latest, macos-15, windows-latest]
18+ os : [ubuntu-latest, macos-15, windows-latest, windows-11-arm ]
1919
2020 steps :
2121 - uses : actions/checkout@v3
22+ - name : Install Rust on Windows ARM
23+ if : matrix.os == 'windows-11-arm'
24+ shell : powershell
25+ run : |
26+ Invoke-WebRequest -Uri https://win.rustup.rs/aarch64 -OutFile rustup-init.exe
27+ ./rustup-init.exe -y
28+ $env:Path += ";$env:USERPROFILE\.cargo\bin"
29+ echo "$env:USERPROFILE\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
2230 - name : Install uniffi-bindgen-cs
2331 if : matrix.os == 'ubuntu-latest'
2432 run : cargo install uniffi-bindgen-cs --git https://github.com/NordSecurity/uniffi-bindgen-cs --tag v0.9.1+v0.28.3
@@ -88,11 +96,16 @@ jobs:
8896 with :
8997 name : native-library-macos-15
9098 path : artifacts/macos
91- - name : Download Windows artifacts
99+ - name : Download Windows x64 artifacts
92100 uses : actions/download-artifact@v4
93101 with :
94102 name : native-library-windows-latest
95103 path : artifacts/windows
104+ - name : Download Windows ARM artifacts
105+ uses : actions/download-artifact@v4
106+ with :
107+ name : native-library-windows-11-arm
108+ path : artifacts/windows-arm
96109 - name : Download bindings
97110 uses : actions/download-artifact@v4
98111 with :
@@ -103,9 +116,11 @@ jobs:
103116 mkdir -p packages/csharp/Strathweb.Phi.Engine/runtimes/linux-x64/native
104117 mkdir -p packages/csharp/Strathweb.Phi.Engine/runtimes/osx-arm64/native
105118 mkdir -p packages/csharp/Strathweb.Phi.Engine/runtimes/win-x64/native
119+ mkdir -p packages/csharp/Strathweb.Phi.Engine/runtimes/win-arm64/native
106120 cp artifacts/linux/*.so packages/csharp/Strathweb.Phi.Engine/runtimes/linux-x64/native/
107121 cp artifacts/macos/*.dylib packages/csharp/Strathweb.Phi.Engine/runtimes/osx-arm64/native/
108122 cp artifacts/windows/*.dll packages/csharp/Strathweb.Phi.Engine/runtimes/win-x64/native/
123+ cp artifacts/windows-arm/*.dll packages/csharp/Strathweb.Phi.Engine/runtimes/win-arm64/native/
109124 cp artifacts/bindings/*.cs packages/csharp/Strathweb.Phi.Engine/
110125 - name : Build NuGet packages
111126 run : |
0 commit comments