33 workflow_dispatch :
44 inputs :
55 build-config :
6+ description : ' Build configuration'
67 required : true
78 default : ' release'
89 type : choice
910 options :
1011 - debug
1112 - release
1213 build-only-linux :
14+ description : ' Build only for Linux'
1315 required : true
1416 default : false
1517 type : boolean
1618 update-unity-native :
19+ description : ' Update pre-built libraries for Unity'
1720 required : true
1821 default : false
1922 type : boolean
5154 name : win-x64
5255 path : native/target/x86_64-pc-windows-msvc/${{ env._RUST_BUILD_CONFIG }}/yaha_native.dll
5356 retention-days : 1
54- - run : dotnet test -c ${{ env._DOTNET_BUILD_CONFIG }} ../test/YetAnotherHttpHandler.Test
57+ - name : Run tests
58+ run : |
59+ dotnet tool restore
60+ dotnet retest -- -c ${{ env._DOTNET_BUILD_CONFIG }} ../test/YetAnotherHttpHandler.Test
5561
5662 build-win-arm64 :
5763 name : Build Native library (win-arm64)
7379 name : win-arm64
7480 path : native/target/aarch64-pc-windows-msvc/${{ env._RUST_BUILD_CONFIG }}/yaha_native.dll
7581 retention-days : 1
76- # - run: dotnet test -c ${{ env._DOTNET_BUILD_CONFIG }} ../test/YetAnotherHttpHandler.Test
82+ # - name: Run tests
83+ # run: |
84+ # dotnet tool restore
85+ # dotnet retest -- -c ${{ env._DOTNET_BUILD_CONFIG }} ../test/YetAnotherHttpHandler.Test
7786
7887 build-win-arm64-uwp :
7988 name : Build Native library (win-arm64-uwp)
@@ -97,7 +106,10 @@ jobs:
97106 name : win-arm64-uwp
98107 path : native/target/aarch64-uwp-windows-msvc/${{ env._RUST_BUILD_CONFIG }}/yaha_native.dll
99108 retention-days : 1
100- # - run: dotnet test -c ${{ env._DOTNET_BUILD_CONFIG }} ../test/YetAnotherHttpHandler.Test
109+ # - name: Run tests
110+ # run: |
111+ # dotnet tool restore
112+ # dotnet retest -- -c ${{ env._DOTNET_BUILD_CONFIG }} ../test/YetAnotherHttpHandler.Test
101113
102114 build-linux-x64 :
103115 name : Build Native library (linux-x64)
@@ -115,7 +127,10 @@ jobs:
115127 name : linux-x64
116128 path : native/target/x86_64-unknown-linux-gnu/${{ env._RUST_BUILD_CONFIG }}/libyaha_native.so
117129 retention-days : 1
118- - run : dotnet test -c ${{ env._DOTNET_BUILD_CONFIG }} ../test/YetAnotherHttpHandler.Test
130+ - name : Run tests
131+ run : |
132+ dotnet tool restore
133+ dotnet retest -- -c ${{ env._DOTNET_BUILD_CONFIG }} ../test/YetAnotherHttpHandler.Test
119134
120135 build-osx-x64 :
121136 name : Build Native library (osx-x64)
@@ -135,7 +150,10 @@ jobs:
135150 name : osx-x64
136151 path : native/target/x86_64-apple-darwin/${{ env._RUST_BUILD_CONFIG }}/libyaha_native.dylib
137152 retention-days : 1
138- - run : dotnet test -c ${{ env._DOTNET_BUILD_CONFIG }} ../test/YetAnotherHttpHandler.Test
153+ - name : Run tests
154+ run : |
155+ dotnet tool restore
156+ dotnet retest -- -c ${{ env._DOTNET_BUILD_CONFIG }} ../test/YetAnotherHttpHandler.Test
139157
140158 build-osx-arm64 :
141159 name : Build Native library (osx-arm64)
@@ -154,7 +172,10 @@ jobs:
154172 name : osx-arm64
155173 path : native/target/aarch64-apple-darwin/${{ env._RUST_BUILD_CONFIG }}/libyaha_native.dylib
156174 retention-days : 1
157- - run : dotnet test -c ${{ env._DOTNET_BUILD_CONFIG }} ../test/YetAnotherHttpHandler.Test
175+ - name : Run tests
176+ run : |
177+ dotnet tool restore
178+ dotnet retest -- -c ${{ env._DOTNET_BUILD_CONFIG }} ../test/YetAnotherHttpHandler.Test
158179
159180 build-ios-x64 :
160181 name : Build Native library (ios-x64)
0 commit comments