-
Notifications
You must be signed in to change notification settings - Fork 1k
Add .NET 10 support via NativeAOT-LLVM along side .NET 8 support #4915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
89586a2
891a4b4
2351acb
3abc343
62f1354
c3041ac
98216f9
fcfbef2
1fe6d8b
8008c6e
e3e1d78
b0d1fc6
171767f
551b656
15266d0
eb613c2
5e5ed90
73fceb0
024bf61
c2ac428
0a9dd20
a1fd123
633861a
aaf16d6
dba4176
157499d
1304ac9
d645103
1fc33cf
044d516
6655bff
17ee828
9273f4f
c320f48
61d57eb
2f268e8
3b5fb03
1247efa
15ae5e8
764abb6
9902837
8d9f5e3
ee9ddce
adf35e5
ee130e4
576db3e
a5a0d58
b0ce8d3
b023178
2f612bd
503f790
283ce83
01f4b74
e3999d9
2d06a3d
25ceaee
95f0f67
b92a91c
202f125
e0961df
8bb32ef
2e3df4b
5bb5829
64337ca
27c7912
d7753be
92d2daa
2fee8d8
fcf09c5
3221c3b
be0975d
5745f96
a680920
ea42791
eafe0e1
7f730ad
4b203d1
199f167
fd119d2
7523e2e
5f10d9e
e980a41
dc1e2b2
6ad1c62
feddae6
4c569c2
27677e7
d7da8d6
3f27385
bce67fd
7146438
ccfc214
629cf84
1654e6f
4321ae8
ce0386d
05b8632
6c48f76
a90fe1e
1d25e18
057383a
7bbdd0f
cda92ff
f80988b
0276a71
1fdbf7d
9a945ba
a574650
75b6762
6ce4d86
efc9d82
0a14ba8
7e83c6f
f0f697e
3a1bc70
6025ec2
e8d77ef
71a1f82
5d8fde3
05a3a32
b72f00f
9dd05e0
9589ade
76659c1
c66b775
da865e3
b81a850
e7a16f8
88f79d8
fb4cafa
67f6454
fcd2c68
9eb889f
0e6bf0b
3e6db68
26a52d2
2ff6657
08743bd
3d30af2
c5391b4
a604e85
aa42086
036c12b
66abedb
63be7ba
a94635f
63c3df1
3cee796
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -184,7 +184,13 @@ jobs: | |
| cd modules | ||
| # the sdk-manifests on windows-latest are messed up, so we need to update them | ||
| dotnet workload config --update-mode manifests | ||
| dotnet workload update | ||
| dotnet workload update --from-previous-sdk | ||
| # Explicitly install wasi-experimental for .NET 8 SDK (needed for test_build_csharp_module) | ||
| # Create temp global.json to target .NET 8 SDK for workload install | ||
| $sdk8Json = '{"sdk":{"version":"8.0.400","rollForward":"latestFeature"}}' | ||
| $sdk8Json | Out-File -FilePath global.json -Encoding utf8 | ||
| dotnet workload install wasi-experimental | ||
| Remove-Item global.json | ||
|
|
||
| - name: Override NuGet packages | ||
| shell: bash | ||
|
|
@@ -1075,6 +1081,16 @@ jobs: | |
| with: | ||
| global-json-file: global.json | ||
|
|
||
| - name: Install .NET workloads | ||
| run: | | ||
| dotnet workload config --update-mode manifests | ||
| dotnet workload update --from-previous-sdk | ||
| # Explicitly install wasi-experimental for .NET 8 SDK (needed for test_build_csharp_module) | ||
| # Create temp global.json to target .NET 8 SDK for workload install | ||
| echo '{"sdk":{"version":"8.0.100","rollForward":"latestFeature"}}' > global.json | ||
| dotnet workload install wasi-experimental | ||
| rm global.json | ||
|
|
||
| - name: Override NuGet packages | ||
| run: | | ||
| dotnet pack crates/bindings-csharp/BSATN.Runtime | ||
|
|
@@ -1146,9 +1162,11 @@ jobs: | |
|
|
||
| - name: Check quickstart-chat bindings are up to date | ||
| run: | | ||
| bash sdks/csharp/tools~/gen-quickstart.sh | ||
| for dotnet_version in 8 10; do | ||
| bash sdks/csharp/tools~/gen-quickstart.sh "$dotnet_version" | ||
| done | ||
| tools/check-diff.sh templates/chat-console-cs/module_bindings || { | ||
| echo 'Error: quickstart-chat bindings have changed. Please run `sdks/csharp/tools~/gen-quickstart.sh`.' | ||
| echo 'Error: quickstart-chat bindings have changed. Please run `sdks/csharp/tools~/gen-quickstart.sh 10`.' | ||
| exit 1 | ||
| } | ||
|
|
||
|
|
@@ -1170,6 +1188,21 @@ jobs: | |
| - name: Run regression tests | ||
| run: | | ||
| bash sdks/csharp/tools~/run-regression-tests.sh | ||
| # Restore global.json symlinks (we replaced them with files to work around .NET 10 SDK bug) | ||
| # server is 5 levels deep from root, republishing dirs are 6 levels deep | ||
| if [ -f sdks/csharp/examples~/regression-tests/server/global.json ] && [ ! -L sdks/csharp/examples~/regression-tests/server/global.json ]; then | ||
| echo "Restoring symlink at server/global.json" | ||
| rm -f sdks/csharp/examples~/regression-tests/server/global.json | ||
| ln -s ../../../../../global.json sdks/csharp/examples~/regression-tests/server/global.json | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. optional nit: I wonder if a
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and/or |
||
| fi | ||
| for dir in sdks/csharp/examples~/regression-tests/republishing/server-initial \ | ||
| sdks/csharp/examples~/regression-tests/republishing/server-republish; do | ||
| if [ -f "$dir/global.json" ] && [ ! -L "$dir/global.json" ]; then | ||
| echo "Restoring symlink at $dir/global.json" | ||
| rm -f "$dir/global.json" | ||
| ln -s ../../../../../../global.json "$dir/global.json" | ||
| fi | ||
| done | ||
| tools/check-diff.sh sdks/csharp/examples~/regression-tests || { | ||
| echo 'Error: Bindings are dirty. Please run `sdks/csharp/tools~/gen-regression-tests.sh`.' | ||
| exit 1 | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.