Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET NORM Extension #85

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
3a20a8b
.NET Extension Design (#5)
mullerj Feb 9, 2023
2694446
.NET Extension Design Implementation (#10)
mullerj Mar 1, 2023
701360a
NormSession typos in comments (#12)
mullerj Mar 10, 2023
db20c64
Feature/9 net norm extension target architecture packages (#13)
mullerj Mar 13, 2023
86d8fb1
Merge branch 'USNavalResearchLaboratory:master' into master
mullerj Jun 19, 2023
96476ff
Codespace Configurations (#15)
mullerj Jun 21, 2023
a1dcbf1
.NET norm extension GitHub actions (#16)
mullerj Jun 30, 2023
e60a3af
Update dotnet-publish.yml to use source branch (#18)
mullerj Jun 30, 2023
47bf91a
.NET norm package publish (#19)
mullerj Jul 4, 2023
7d7de23
Publish test results (#21)
mullerj Jul 4, 2023
2d8768c
Dev Container extensions (#23)
mullerj Jul 4, 2023
2be146c
Dev Container performance (#25)
mullerj Jul 4, 2023
43c0736
Revert "Dev Container performance (#25)" (#27)
mullerj Jul 4, 2023
b04acd3
Merge branch 'USNavalResearchLaboratory:master' into master
mullerj Mar 28, 2024
034980e
Update action versions for dotnet-publish.yml
mullerj Mar 28, 2024
b5d2e87
Update action versions for dotnet.yml
mullerj Mar 28, 2024
1d91fde
Fixed ReceivesData test to use received events for actual data
mullerj May 22, 2024
3cdb415
NormData Refactor (#30)
mullerj May 27, 2024
edbcff7
NormDataEnqueue Refactor (#31)
mullerj May 28, 2024
b9c18c5
Updated GetSession to use lock
mullerj Jun 6, 2024
0662326
Updated GetSession to TryGetValue
mullerj Jun 6, 2024
662e1fa
DataEnqueue Refactor (#33)
mullerj Jun 14, 2024
0eb0b82
Merge branch 'USNavalResearchLaboratory:master' into master
mullerj Jun 14, 2024
d539a35
NormDataEnqueue Refactor (#34)
mullerj Jul 29, 2024
bc8ab6b
Updated NormFile.Name to use PtrToStringAnsi
mullerj Aug 23, 2024
f04faca
Updated NormFile.Name to use stackalloc (#37)
mullerj Aug 25, 2024
022e120
Updated NormNode.Address to use stackalloc and create IPAddress from …
mullerj Aug 25, 2024
32c3eb5
NormObject Refactor
mullerj Aug 28, 2024
6ae32b1
NormStream Refactor
mullerj Aug 28, 2024
e4513cc
NormNode Refactor
mullerj Aug 28, 2024
3ee6345
NormFile Refactor
mullerj Aug 28, 2024
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
39 changes: 39 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"image": "mcr.microsoft.com/devcontainers/cpp:1.0.0-buster",
"features": {
"ghcr.io/devcontainers/features/python:1": {
"version": "3.11"
},
"ghcr.io/devcontainers/features/dotnet:1": {
"version": "6"
},
"ghcr.io/devcontainers/features/java:1": {
"version": "17",
"installAnt": true,
"antVersion": "1.10.12"
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "20.10"
},
"ghcr.io/devcontainers/features/powershell:1": {
"version": "7.3"
}
},
"customizations": {
"vscode": {
"extensions": [
"DavidAnson.vscode-markdownlint",
"eamodio.gitlens",
"github.vscode-github-actions",
"GitHub.codespaces",
"jebbs.plantuml",
"ms-python.isort",
"ms-vscode-remote.remote-containers",
"ms-vscode.cpptools-themes",
"ms-vscode.PowerShell",
"tomoki1207.pdf",
"yzhang.markdown-all-in-one"
]
}
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sh text eol=lf
141 changes: 141 additions & 0 deletions .github/workflows/dotnet-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
name: ".NET Publish"

on:
workflow_run:
workflows: ['.NET']
types:
- completed
branches:
- master
- main

jobs:
publish:

runs-on: ubuntu-latest
permissions:
packages: write
defaults:
run:
working-directory: ./src/dotnet

if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Package .NET
run: dotnet pack . -c Release
- name: Publish .NET
run: |
package=$(find . -type f -name "*.nupkg")
dotnet nuget push "$package" --skip-duplicate

publish-linux-x64:

runs-on: ubuntu-latest
permissions:
packages: write

if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Package .NET
uses: devcontainers/[email protected]
with:
push: never
runCmd: |
cd ./src/dotnet
chmod 755 *.sh
./pack-linux-x64.sh
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Publish .NET
run: |
package=$(find . -type f -name "*linux-x64*.nupkg")
dotnet nuget push "$package" --skip-duplicate

publish-win-x64:

runs-on: windows-latest
permissions:
packages: write
defaults:
run:
working-directory: ./src/dotnet

if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.x
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Package .NET
run: .\pack-win-x64.bat
- name: Publish .NET
run: |
$package=Get-ChildItem -Path .\ -Filter *win-x64*.nupkg -Recurse -File | ForEach-Object { $_.FullName }
dotnet nuget push "$package" --skip-duplicate

publish-win-x86:

runs-on: windows-latest
permissions:
packages: write
defaults:
run:
working-directory: ./src/dotnet

if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.x
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Package .NET
run: .\pack-win-x86.bat
- name: Publish .NET
run: |
$package=Get-ChildItem -Path .\ -Filter *win-x86*.nupkg -Recurse -File | ForEach-Object { $_.FullName }
dotnet nuget push "$package" --skip-duplicate
49 changes: 49 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: .NET

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
defaults:
run:
working-directory: ./src/dotnet

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.x
- name: Build NORM
run: ./waf
working-directory: .

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore /property:Configuration=Release
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --verbosity normal --configuration Release --logger trx --results-directory TestResults
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: dotnet-results
path: ./src/dotnet/TestResults
if: ${{ always() }}
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: ./src/dotnet/TestResults/*.trx
if: ${{ always() }}
Loading
Loading