mirror of
https://github.com/2dust/v2rayN.git
synced 2025-11-29 03:02:53 +00:00
Lock .NET SDK to 8.0.416 and fix SelfContained parameter
Co-authored-by: 2dust <31833384+2dust@users.noreply.github.com>
This commit is contained in:
parent
f3a672f130
commit
3ee4ecf632
2 changed files with 22 additions and 7 deletions
23
.github/workflows/build-windows.yml
vendored
23
.github/workflows/build-windows.yml
vendored
|
|
@ -32,17 +32,26 @@ jobs:
|
|||
- name: Setup
|
||||
uses: actions/setup-dotnet@v5.0.0
|
||||
with:
|
||||
dotnet-version: '8.0.x'
|
||||
dotnet-version: '8.0.416'
|
||||
|
||||
- name: Verify SDK version
|
||||
run: |
|
||||
echo "=== dotnet --version ==="
|
||||
dotnet --version
|
||||
echo "=== dotnet --list-sdks ==="
|
||||
dotnet --list-sdks
|
||||
echo "=== dotnet --list-runtimes ==="
|
||||
dotnet --list-runtimes
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cd v2rayN
|
||||
dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-x64 --self-contained=false -p:EnableWindowsTargeting=true -o $OutputPath64
|
||||
dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-arm64 --self-contained=false -p:EnableWindowsTargeting=true -o $OutputPathArm64
|
||||
dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-x64 --self-contained=true -p:EnableWindowsTargeting=true -o $OutputPath64Sc
|
||||
dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-x64 --self-contained=false -p:EnableWindowsTargeting=true -o $OutputPath64
|
||||
dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-arm64 --self-contained=false -p:EnableWindowsTargeting=true -o $OutputPathArm64
|
||||
dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-x64 --self-contained=true -p:EnableWindowsTargeting=true -p:PublishTrimmed=true -o $OutputPath64Sc
|
||||
dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-x64 -p:EnableWindowsTargeting=true -p:SelfContained=false -o $OutputPath64
|
||||
dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-arm64 -p:EnableWindowsTargeting=true -p:SelfContained=false -o $OutputPathArm64
|
||||
dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-x64 -p:EnableWindowsTargeting=true -p:SelfContained=true -o $OutputPath64Sc
|
||||
dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-x64 -p:EnableWindowsTargeting=true -p:SelfContained=false -o $OutputPath64
|
||||
dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-arm64 -p:EnableWindowsTargeting=true -p:SelfContained=false -o $OutputPathArm64
|
||||
dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-x64 -p:EnableWindowsTargeting=true -p:SelfContained=true -p:PublishTrimmed=true -o $OutputPath64Sc
|
||||
|
||||
|
||||
- name: Upload build artifacts
|
||||
|
|
|
|||
6
global.json
Normal file
6
global.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"sdk": {
|
||||
"version": "8.0.416",
|
||||
"rollForward": "disable"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue