Skip to content

Commit e34e7da

Browse files
perf(ci): Switch to Release build for performance tracing
Now that tracing works with --name flag, switch from Debug to Release build for more realistic performance profiling. Release builds have optimizations enabled and represent actual production performance.
1 parent 16deed5 commit e34e7da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
- name: Restore HelloWorldBot
108108
run: dotnet restore examples/HelloWorldBot/HelloWorldBot.csproj
109109
- name: Build HelloWorldBot
110-
run: dotnet build examples/HelloWorldBot/HelloWorldBot.csproj -c Debug --no-restore
110+
run: dotnet build examples/HelloWorldBot/HelloWorldBot.csproj -c Release --no-restore
111111
- name: Create dummy GitHub App private key
112112
run: |
113113
cat > /tmp/trace-dummy-key.pem <<'EOF'
@@ -123,7 +123,7 @@ jobs:
123123
TMPDIR: /tmp
124124
DOTNET_DiagnosticPorts: ""
125125
run: |
126-
dotnet run --project examples/HelloWorldBot/HelloWorldBot.csproj -c Debug > /tmp/app.log 2>&1 &
126+
dotnet run --project examples/HelloWorldBot/HelloWorldBot.csproj -c Release > /tmp/app.log 2>&1 &
127127
echo $! > app.pid
128128
echo "Started HelloWorldBot with PID $(cat app.pid)"
129129
- name: Wait for app to initialize

0 commit comments

Comments
 (0)