Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ '**' ]

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true

jobs:
build-and-test:
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.102'
cache: true
cache-dependency-path: '**/packages.lock.json'

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test (Linux)
if: runner.os == 'Linux'
run: dotnet test --configuration Release --no-build --verbosity normal

- name: Test (Windows - excluding Linux-only projects)
if: runner.os == 'Windows'
run: |
dotnet test test/Magma.Common.Facts --configuration Release --no-build --verbosity normal
dotnet test test/Magma.Internet.Ip.Facts --configuration Release --no-build --verbosity normal
dotnet test test/Magma.Link.Facts --configuration Release --no-build --verbosity normal
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

<PropertyGroup Condition="'$(CI)' == 'true'">
Expand Down
44 changes: 44 additions & 0 deletions benchmarks/Magma.Performance/packages.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"version": 1,
"dependencies": {
"net10.0": {
"BenchmarkDotNet": {
"type": "Direct",
"requested": "[0.10.14, )",
"resolved": "0.10.14",
"contentHash": "pPM8h3fv4NUg9P3Qh5ga+Klmvh3FpJ0tblBHwTcsh0XjSHvwGc4/vRJYM6ix06evf58NQcge5Cyv1PBY83ZCwg==",
"dependencies": {
"BenchmarkDotNet.Core": "0.10.14"
}
},
"BenchmarkDotNet.Core": {
"type": "Transitive",
"resolved": "0.10.14",
"contentHash": "f2B6ERn4sBCv4VVt699FYtfRfqX0NuMZoG1lXrzNkCKyPRjRWvreqqJ5aRTMf4PnosfUaylQezpi1yoITncCRQ==",
"dependencies": {
"Microsoft.DotNet.InternalAbstractions": "1.0.0",
"Microsoft.DotNet.PlatformAbstractions": "1.1.1",
"System.Xml.XPath.XmlDocument": "4.3.0"
}
},
"Microsoft.DotNet.InternalAbstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "AAguUq7YyKk3yDWPoWA8DrLZvURxB/LrDdTn1h5lmPeznkFUpfC3p459w5mQYQE0qpquf/CkSQZ0etiV5vRHFA=="
},
"Microsoft.DotNet.PlatformAbstractions": {
"type": "Transitive",
"resolved": "1.1.1",
"contentHash": "m+IIxUg8Ev+g34H7CIcuILm3ZWWJNclsgYqc/j5n/QCKhcvRAeAn0byDI7zCqlDUwn6byXYrJxuZpuZh/5C/6g=="
},
"System.Xml.XPath.XmlDocument": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "A/uxsWi/Ifzkmd4ArTLISMbfFs6XpRPsXZonrIqyTY70xi8t+mDtvSM5Os0RqyRDobjMBwIDHDL4NOIbkDwf7A=="
},
"magma.common": {
"type": "Project"
}
}
}
}
51 changes: 51 additions & 0 deletions sample/Magma.NetMap.PlaintextApp/packages.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"version": 1,
"dependencies": {
"net10.0": {
"Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "OJ53lhivBAjVmNMWiwB8hiXZ6IW8xKlhkWAG8gHTWruCaH4ofqIK1HjVcFgsf1Olu4/sc2jGGBmMWMSoTb5e1A=="
},
"magma.common": {
"type": "Project"
},
"magma.internet.ip": {
"type": "Project",
"dependencies": {
"Magma.Common": "[1.0.0, )"
}
},
"magma.link": {
"type": "Project"
},
"magma.netmap": {
"type": "Project",
"dependencies": {
"Magma.Common": "[1.0.0, )",
"Magma.Link": "[1.0.0, )",
"Magma.Network.Abstractions": "[1.0.0, )",
"Magma.PCap": "[1.0.0, )",
"Magma.Transport.Tcp": "[1.0.0, )",
"Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": "[2.1.0-rc1-final, )"
}
},
"magma.network.abstractions": {
"type": "Project"
},
"magma.pcap": {
"type": "Project"
},
"magma.transport.tcp": {
"type": "Project",
"dependencies": {
"Magma.Common": "[1.0.0, )",
"Magma.Internet.Ip": "[1.0.0, )",
"Magma.Link": "[1.0.0, )",
"Magma.Network.Abstractions": "[1.0.0, )",
"Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": "[2.1.0-rc1-final, )"
}
}
}
}
}
150 changes: 150 additions & 0 deletions sample/Magma.NetMap.TcpHost/packages.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
{
"version": 1,
"dependencies": {
"net10.0": {
"Microsoft.AspNetCore.Connections.Abstractions": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "1eE+Hml8yITBaNO+5P2f5G8FIN/lX+FOfdw2SrgNLfSlg0inlmSKHqwDz6OzrsK2Pqu4RHWd/v9P6FLfLiaeQA==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "2.1.0-rc1-final"
}
},
"Microsoft.AspNetCore.Hosting.Abstractions": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "ZS9+q2D4gDRy9egkX5iOAztWYtOcmMbuPpGh3Vh2ayDgZ0qnOF4n/BYN+kZgCWE+KtLeunAwmXspNj7aHXJYgw==",
"dependencies": {
"Microsoft.AspNetCore.Hosting.Server.Abstractions": "2.1.0-rc1-final",
"Microsoft.AspNetCore.Http.Abstractions": "2.1.0-rc1-final",
"Microsoft.Extensions.Hosting.Abstractions": "2.1.0-rc1-final"
}
},
"Microsoft.AspNetCore.Hosting.Server.Abstractions": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "9zEHPWJduVTLanNVRuptCB2zrhY1D7/n6vgdPypmRtq3eR51fgfYyDsalZXQeFNOsKdVaD4PuSEP3DiLed8bYg==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "2.1.0-rc1-final",
"Microsoft.Extensions.Configuration.Abstractions": "2.1.0-rc1-final"
}
},
"Microsoft.AspNetCore.Http.Abstractions": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "k8rteCcVexd8yh5DLi4Vo4UU3vyQpHP43d13jalWixImsHSgvDjkjuOUE8MK9oTlHd9utSsl8Vyeh1v2vABVvg==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "2.1.0-rc1-final"
}
},
"Microsoft.AspNetCore.Http.Features": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "BwPSAufLsQjTyeGhm//f+GXhV9s68dJRPGIPy0tH5vPgRiTxMxTOqhi3ReJOR9fYnLkf1zxf/dLEly4INk1+dg==",
"dependencies": {
"Microsoft.Extensions.Primitives": "2.1.0-rc1-final"
}
},
"Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "OJ53lhivBAjVmNMWiwB8hiXZ6IW8xKlhkWAG8gHTWruCaH4ofqIK1HjVcFgsf1Olu4/sc2jGGBmMWMSoTb5e1A==",
"dependencies": {
"Microsoft.AspNetCore.Connections.Abstractions": "2.1.0-rc1-final"
}
},
"Microsoft.Extensions.Configuration.Abstractions": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "U0Q+2iXLHmLrYNl0afYa/Co0J8E/q5E81n3InSa8D8w25OiqOU5ETaOT4/ridVtHTNTcGao34LtMWTnOl/Ly+A==",
"dependencies": {
"Microsoft.Extensions.Primitives": "2.1.0-rc1-final"
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "WDSDj1JvNlBYfGyU+4TwDrN7LhJX15RmTnTeH5nVOvDOpju17vqx39yChgXeEAwm9kVwCXrRvs5RQWGVLd1cuw=="
},
"Microsoft.Extensions.FileProviders.Abstractions": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "o4C2e7UUiwAUtNrF+itJKBKNSVGXEE4i3tCtkK2oLk1/CJ88hnEHU+A299NKpUloMbsXH4Z+29lPUbNsKHoeTw==",
"dependencies": {
"Microsoft.Extensions.Primitives": "2.1.0-rc1-final"
}
},
"Microsoft.Extensions.Hosting.Abstractions": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "G+UwVxCWW8p6aEQy5iPt1gt4H4L+LbXyOGVXMZwOVE03KJpg6IxBFd7VkgEsnVhXsjuGdCV0m/76MnJuTMvs+w==",
"dependencies": {
"Microsoft.Extensions.Configuration.Abstractions": "2.1.0-rc1-final",
"Microsoft.Extensions.DependencyInjection.Abstractions": "2.1.0-rc1-final",
"Microsoft.Extensions.FileProviders.Abstractions": "2.1.0-rc1-final",
"Microsoft.Extensions.Logging.Abstractions": "2.1.0-rc1-final"
}
},
"Microsoft.Extensions.Logging.Abstractions": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "wbv9lUGJPJ+nKMyHWBiImSI99n70nynYW+lKQhUa8fJTr3G2sNUaN12uXh3+riNwnNX+YJldhdo38v8s6N8ZSA=="
},
"Microsoft.Extensions.Options": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "uRkR6l93U/2FVlijdHfdb8NafesLr46dB1RkHtgt8p+lVPy6MspXxvbftEPKFSlT9uT0wWlGw8FEyZSQsex23w==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "2.1.0-rc1-final",
"Microsoft.Extensions.Primitives": "2.1.0-rc1-final"
}
},
"Microsoft.Extensions.Primitives": {
"type": "Transitive",
"resolved": "2.1.0-rc1-final",
"contentHash": "UR92OPDCSSBckjDELE1ZOzioml4jrMTYo2LmP3d+HhY56GeS6gwVwTNTxMb3VL1KXKzkYzdbQSo3xVwN6z9Ogg=="
},
"magma.common": {
"type": "Project"
},
"magma.internet.ip": {
"type": "Project",
"dependencies": {
"Magma.Common": "[1.0.0, )"
}
},
"magma.link": {
"type": "Project"
},
"magma.netmap": {
"type": "Project",
"dependencies": {
"Magma.Common": "[1.0.0, )",
"Magma.Link": "[1.0.0, )",
"Magma.Network.Abstractions": "[1.0.0, )",
"Magma.PCap": "[1.0.0, )",
"Magma.Transport.Tcp": "[1.0.0, )",
"Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": "[2.1.0-rc1-final, )"
}
},
"magma.network.abstractions": {
"type": "Project"
},
"magma.pcap": {
"type": "Project"
},
"magma.transport.tcp": {
"type": "Project",
"dependencies": {
"Magma.Common": "[1.0.0, )",
"Magma.Internet.Ip": "[1.0.0, )",
"Magma.Link": "[1.0.0, )",
"Magma.Network.Abstractions": "[1.0.0, )",
"Microsoft.AspNetCore.Hosting.Abstractions": "[2.1.0-rc1-final, )",
"Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions": "[2.1.0-rc1-final, )",
"Microsoft.Extensions.Options": "[2.1.0-rc1-final, )"
}
}
}
}
}
Loading
Loading