Skip to content

Conversation

Copy link

Copilot AI commented Nov 7, 2025

Create workflow for building and testing Unikernel image from library/dotnet/10

Plan:

  • Create .github/workflows/library-dotnet10.yaml workflow file
  • Configure build job with matrix for qemu/x86_64 and fc/x86_64 platforms
  • Add execute flag for qemu/x86_64 to test the unikernel
  • Configure push job for merging and pushing OCI digests
  • Set up proper triggers (push, PR, schedule, workflow_dispatch, repository_dispatch)
  • Validate YAML syntax
  • Add explicit permissions blocks for security (contents:read, packages:write)
  • Pass CodeQL security analysis (0 alerts)
  • Fix Dockerfile to install native build tools (clang, zlib1g-dev) for AOT compilation

Completed

The workflow includes:

  • Build job that compiles the unikernel for qemu/x86_64 and fc/x86_64
  • Automatic execution/testing on qemu/x86_64 platform using the execute flag
  • Push job to merge and push OCI digests to the registry
  • Triggers for push, PR, schedule, manual dispatch, and repository dispatch events
  • Concurrency control to cancel in-progress actions
  • Explicit permissions following principle of least privilege
  • Successfully passed security analysis
  • Dockerfile updated to install native build tools required for .NET Native AOT compilation
Original prompt

Create a workflow that would build and test Unikernel image from library/dotnet/10


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Create workflow for building and testing Unikernel image Add workflow to build and test dotnet:10 unikernel Nov 7, 2025
Copilot AI requested a review from reedz November 7, 2025 21:20
@reedz
Copy link
Owner

reedz commented Nov 7, 2025

@copilot build is failing with " i 8.203 /root/.nuget/packages/microsoft.dotnet.ilcompiler/10.0.0-preview.7.25380.108/build/Microsoft.NETCore.Native.Unix.targets(314,5): error : Platform linker ('clang' or 'gcc') not found in PATH. Ensure you have all the required prerequisites documented at https://aka.ms/nativeaot-prerequisites. [/src/SimpleHttpServer.csproj]"

Copy link
Author

Copilot AI commented Nov 7, 2025

@copilot build is failing with " i 8.203 /root/.nuget/packages/microsoft.dotnet.ilcompiler/10.0.0-preview.7.25380.108/build/Microsoft.NETCore.Native.Unix.targets(314,5): error : Platform linker ('cla...

Fixed in 113a97d. The Dockerfile now installs clang and zlib1g-dev, which are required for .NET Native AOT compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants