-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.appveyor.yml
46 lines (39 loc) · 1.88 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
image: Visual Studio 2022
skip_branch_with_pr: true
environment:
# Disable the .NET logo in the console output.
DOTNET_NOLOGO: true
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build.
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending .NET CLI telemetry to Microsoft.
DOTNET_CLI_TELEMETRY_OPTOUT: true
BUILD_ARTIFACT_PATH: build-artifacts
build_script:
- ps: dotnet --info
- ps: dotnet restore
- ps: dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true -bl:$env:BUILD_ARTIFACT_PATH/msbuild-build.binlog
- ps: |
$env:COMPlus_EnableAVX2 = 1
$env:COMPlus_EnableSSE41 = 1
$env:COMPlus_EnableSSE2 = 1
Write-Host "Test Environment: Normal" -ForegroundColor "Cyan"
dotnet test --no-restore /p:SkipBuildVersioning=true
$env:COMPlus_EnableAVX2 = 0
$env:COMPlus_EnableSSE41 = 1
$env:COMPlus_EnableSSE2 = 1
Write-Host "Test Environment: AVX2 Disabled" -ForegroundColor "Cyan"
dotnet test --no-restore --framework netcoreapp3.1 /p:SkipBuildVersioning=true
$env:COMPlus_EnableAVX2 = 0
$env:COMPlus_EnableSSE41 = 0
$env:COMPlus_EnableSSE2 = 1
Write-Host "Test Environment: SSE41 Disabled" -ForegroundColor "Cyan"
dotnet test --no-restore --framework netcoreapp3.1 /p:SkipBuildVersioning=true
$env:COMPlus_EnableAVX2 = 0
$env:COMPlus_EnableSSE41 = 0
$env:COMPlus_EnableSSE2 = 0
Write-Host "Test Environment: SSE2 Disabled" -ForegroundColor "Cyan"
dotnet test --no-restore --framework netcoreapp3.1 /p:SkipBuildVersioning=true
- ps: dotnet pack --no-build -c Release /p:PackageOutputPath=$env:BUILD_ARTIFACT_PATH /p:ContinuousIntegrationBuild=true -bl:$env:BUILD_ARTIFACT_PATH/msbuild-pack.binlog
test: false
artifacts:
- path: '**\$(BUILD_ARTIFACT_PATH)\*'