Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
- Remove explicit `--runtime` flag.
- Cater for macOS explicitly.
  • Loading branch information
martincostello committed Jan 31, 2024
1 parent f45b7a2 commit ec33eb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/test-aot-compatibility.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
param([string]$targetNetFramework)

$runtime = $IsWindows ? "win-x64" : "linux-x64"
$app = $IsWindows ? "./OpenTelemetry.AotCompatibility.TestApp.exe" : "./OpenTelemetry.AotCompatibility.TestApp"

$rootDirectory = Split-Path $PSScriptRoot -Parent
$publishOutput = dotnet publish $rootDirectory/test/OpenTelemetry.AotCompatibility.TestApp/OpenTelemetry.AotCompatibility.TestApp.csproj --runtime $runtime -nodeReuse:false /p:UseSharedCompilation=false
$publishOutput = dotnet publish $rootDirectory/test/OpenTelemetry.AotCompatibility.TestApp/OpenTelemetry.AotCompatibility.TestApp.csproj -nodeReuse:false /p:UseSharedCompilation=false

$actualWarningCount = 0

Expand All @@ -26,6 +23,9 @@ if ($LastExitCode -ne 0)
Write-Host $publishOutput
}

$runtime = $IsWindows ? "win-x64" : ($IsMacOS ? "macos-x64" : "linux-x64")
$app = $IsWindows ? "./OpenTelemetry.AotCompatibility.TestApp.exe" : "./OpenTelemetry.AotCompatibility.TestApp"

Push-Location $rootDirectory/test/OpenTelemetry.AotCompatibility.TestApp/bin/Release/$targetNetFramework/$runtime

Write-Host "Executing test App..."
Expand Down

0 comments on commit ec33eb3

Please sign in to comment.