@@ -92,12 +92,27 @@ jobs:
9292 - name : Build VSCodeExtension dependencies
9393 run : |
9494 dotnet publish src/CHttpExtension -r linux-x64 -f net9.0 # .NET 9
95- dotnet publish src/CHttpExtension -r linux-arm64 -f net9.0 # .NET 9
9695 - name : Upload CHttpExtension file to artifacts (linux-x64)
9796 uses : actions/upload-artifact@v4
9897 with :
9998 name : CHttpExtension-linux-x64 # The name of the artifact bundle
10099 path : src/CHttpExtension/bin/Release/net9.0/linux-x64/publish/*
100+
101+ cross-compile-linux-aot :
102+ runs-on : ubuntu-26.04-arm
103+ steps :
104+ - uses : actions/checkout@v6
105+ - name : Setup .NET
106+ uses : actions/setup-dotnet@v5
107+ with :
108+ dotnet-version : ${{ env.DOTNET_VERSION }}
109+ - name : Set VERSION variable from tag
110+ run : |
111+ $ver="${{GITHUB.REF_NAME}}" -replace 'v', ''
112+ echo "VERSION=${ver}" >> $env:GITHUB_ENV
113+ - name : Build VSCodeExtension dependencies
114+ run : |
115+ dotnet publish src/CHttpExtension -r linux-arm64 -f net9.0 # .NET 9
101116 - name : Upload CHttpExtension file to artifacts (linux-arm64)
102117 uses : actions/upload-artifact@v4
103118 with :
@@ -176,7 +191,7 @@ jobs:
176191
177192 vscodeextension-linux-arm64 :
178193 runs-on : ubuntu-latest
179- needs : [build-and-deploy ]
194+ needs : [cross-compile-linux-arm64 ]
180195 permissions :
181196 contents : write
182197 steps :
0 commit comments