Skip to content

semanticSSSSSS!

semanticSSSSSS! #18

Workflow file for this run

name: AOT Example
on:
push:
workflow_dispatch:
env:
GITHUB_USERNAME: baronfel
GITHUB_TOKEN: ${{ secrets.CONTAINER_PUSH_PAT }}
jobs:
aot:
name: "Build AOT Console App"
runs-on: ubuntu-latest
steps:
- name: Get the code
uses: actions/checkout@v2
- name: get .NET info
run: |
docker run --rm --pull=always \
mcr.microsoft.com/dotnet/nightly/sdk:8.0-alpine-aot \
dotnet --info
- name: build the app AOT-style
run: |
docker run --rm --pull=always \
-v $(pwd)/src:/src \
-v /var/run/docker.sock:/var/run/docker.sock \
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: Upload binlog
uses: actions/upload-artifact@v3
with:
path: src/aot-sample/msbuild.binlog
name: msbuild.binlog