Skip to content

Commit

Permalink
a more illustrative sample
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel committed Sep 20, 2023
1 parent 001b2a7 commit 611502d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/aot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ jobs:
mcr.microsoft.com/dotnet/nightly/sdk:8.0-alpine-aot \
sh -c "
apk add docker && \
ls -la && \
cd ./src/aot-sample && \
dotnet --info && \
dotnet publish /t:PublishContainer /p:ContainerBaseImage=mcr.microsoft.com/dotnet/runtime-deps:8.0-alpine-extra --use-current-runtime -bl \
"
- name: run the just-built container
run: |
docker run --rm aot-sample:latest
- name: Upload binlog
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion src/aot-sample/Program.cs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
Console.WriteLine($"Running on {System.Runtime.InteropServices.RuntimeInformation.OSDescription} for {System.Runtime.InteropServices.RuntimeInformation.OSArchitecture}");

0 comments on commit 611502d

Please sign in to comment.