Skip to content

NuGet / .NET

Avrea caches packages from nuget.org so that dotnet restore resolves from colocated cache on repeat runs.

NuGet is pre-configured. Your workflow needs no changes:

workflow.yml
jobs:
build:
runs-on: avrea-ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0
- run: dotnet restore
- run: dotnet build --no-restore
- run: dotnet test --no-build

Add to your NuGet.config:

NuGet.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="avrea-cache" value="https://avrea-host:8443/nuget/v3/index.json" />
</packageSources>
</configuration>