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
148 changes: 74 additions & 74 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,74 +1,74 @@
root = true
[*]
charset = utf-8
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.{yml,props,targets,csproj}]
indent_size = 2
# IDE0079: Remove unnecessary suppression
dotnet_remove_unnecessary_suppression_exclusions = category:ReSharper
# IDE0079: Remove unnecessary suppression
# dotnet_diagnostic.IDE0079.severity = none
# CA2255: The 'ModuleInitializer' attribute should not be used in libraries
dotnet_diagnostic.CA2255.severity = none
# CS8600: Converting null literal or possible null value to non-nullable type.
dotnet_diagnostic.CS8600.severity = error
# CS8601: Possible null reference assignment.
dotnet_diagnostic.CS8601.severity = error
# CS8602: Dereference of a possibly null reference.
dotnet_diagnostic.CS8602.severity = error
# CS8603: Possible null reference return.
dotnet_diagnostic.CS8603.severity = error
# CS8604: Possible null reference argument.
dotnet_diagnostic.CS8604.severity = error
# CS8610: Nullability of reference types in type of parameter doesn't match overridden member.
dotnet_diagnostic.CS8610.severity = error
# CS8613: Nullability of reference types in return type doesn't match implicitly implemented member.
dotnet_diagnostic.CS8613.severity = error
# CS8614: Nullability of reference types in type of parameter doesn't match implicitly implemented member.
dotnet_diagnostic.CS8614.severity = error
# CS8618: Non-nullable field is uninitialized. Consider declaring as nullable.
dotnet_diagnostic.CS8618.severity = error
# CS8619: Nullability of reference types in value doesn't match target type.
dotnet_diagnostic.CS8619.severity = error
# CS8620: Argument cannot be used for parameter due to differences in the nullability of reference types.
dotnet_diagnostic.CS8620.severity = error
# CS8625: Cannot convert null literal to non-nullable reference type.
dotnet_diagnostic.CS8625.severity = error
# CS8634: The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match 'class' constraint.
dotnet_diagnostic.CS8634.severity = error
# CS8643: Nullability of reference types in explicit interface specifier doesn't match interface implemented by the type.
dotnet_diagnostic.CS8643.severity = error
# CS8653: A default expression introduces a null value for a type parameter.
dotnet_diagnostic.CS8653.severity = error
# CS8714: The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match 'notnull' constraint.
dotnet_diagnostic.CS8714.severity = error
# IDE0059: Unnecessary assigment of a value
dotnet_diagnostic.IDE0059.severity = none
# IDE0060: Remove unused parameter
dotnet_diagnostic.IDE0060.severity = none
root = true

[*]
charset = utf-8
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{yml,props,targets,csproj}]
indent_size = 2

# IDE0079: Remove unnecessary suppression
dotnet_remove_unnecessary_suppression_exclusions = category:ReSharper

# IDE0079: Remove unnecessary suppression
# dotnet_diagnostic.IDE0079.severity = none

# CA2255: The 'ModuleInitializer' attribute should not be used in libraries
dotnet_diagnostic.CA2255.severity = none

# CS8600: Converting null literal or possible null value to non-nullable type.
dotnet_diagnostic.CS8600.severity = error

# CS8601: Possible null reference assignment.
dotnet_diagnostic.CS8601.severity = error

# CS8602: Dereference of a possibly null reference.
dotnet_diagnostic.CS8602.severity = error

# CS8603: Possible null reference return.
dotnet_diagnostic.CS8603.severity = error

# CS8604: Possible null reference argument.
dotnet_diagnostic.CS8604.severity = error

# CS8610: Nullability of reference types in type of parameter doesn't match overridden member.
dotnet_diagnostic.CS8610.severity = error

# CS8613: Nullability of reference types in return type doesn't match implicitly implemented member.
dotnet_diagnostic.CS8613.severity = error

# CS8614: Nullability of reference types in type of parameter doesn't match implicitly implemented member.
dotnet_diagnostic.CS8614.severity = error

# CS8618: Non-nullable field is uninitialized. Consider declaring as nullable.
dotnet_diagnostic.CS8618.severity = error

# CS8619: Nullability of reference types in value doesn't match target type.
dotnet_diagnostic.CS8619.severity = error

# CS8620: Argument cannot be used for parameter due to differences in the nullability of reference types.
dotnet_diagnostic.CS8620.severity = error

# CS8625: Cannot convert null literal to non-nullable reference type.
dotnet_diagnostic.CS8625.severity = error

# CS8634: The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match 'class' constraint.
dotnet_diagnostic.CS8634.severity = error

# CS8643: Nullability of reference types in explicit interface specifier doesn't match interface implemented by the type.
dotnet_diagnostic.CS8643.severity = error

# CS8653: A default expression introduces a null value for a type parameter.
dotnet_diagnostic.CS8653.severity = error

# CS8714: The type cannot be used as type parameter in the generic type or method. Nullability of type argument doesn't match 'notnull' constraint.
dotnet_diagnostic.CS8714.severity = error

# IDE0059: Unnecessary assigment of a value
dotnet_diagnostic.IDE0059.severity = none

# IDE0060: Remove unused parameter
dotnet_diagnostic.IDE0060.severity = none
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
80 changes: 40 additions & 40 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: Publish
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-[a-z]+.[0-9]+"
permissions:
contents: write
jobs:
publish:
if: github.repository == 'rameel/ramstack.parsing'
name: Publish packages
runs-on: ubuntu-latest
steps:
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Checkout
uses: actions/checkout@v4
- name: Build Solution
run: dotnet build -c Release -p:SkipInternalsVisibleTo=true
- name: Create NuGet Packages
run: dotnet pack -c Release -o ./nuget --no-build
- name: Publish NuGet Packages
run: dotnet nuget push ./nuget/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate -s https://api.nuget.org/v3/index.json
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
draft: true
files: nuget/*
name: Publish

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-[a-z]+.[0-9]+"

permissions:
contents: write

jobs:
publish:
if: github.repository == 'rameel/ramstack.parsing'
name: Publish packages
runs-on: ubuntu-latest

steps:
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x

- name: Checkout
uses: actions/checkout@v4

- name: Build Solution
run: dotnet build -c Release -p:SkipInternalsVisibleTo=true

- name: Create NuGet Packages
run: dotnet pack -c Release -o ./nuget --no-build

- name: Publish NuGet Packages
run: dotnet nuget push ./nuget/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate -s https://api.nuget.org/v3/index.json

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
draft: true
files: nuget/*
116 changes: 58 additions & 58 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
name: Build & Test
on:
pull_request:
branches: [main]
jobs:
build-and-test:
name: build-and-test-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm]
steps:
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.x
7.x
8.x
9.x
- name: Checkout
uses: actions/checkout@v4
- name: Build (Debug)
run: dotnet build -c Debug
- name: Build (Release)
run: dotnet build -c Release
- name: Test (Debug)
run: dotnet test -c Debug --no-build
- name: Test (Release)
run: dotnet test -c Release --no-build
- name: Test (Debug, AVX2=0)
env:
DOTNET_EnableAVX2: "0"
run: dotnet test -c Debug --no-build
- name: Test (Release, AVX2=0)
env:
DOTNET_EnableAVX2: "0"
run: dotnet test -c Release --no-build
- name: Test (Debug, HWIntrinsic=0)
env:
DOTNET_EnableHWIntrinsic: "0"
run: dotnet test -c Debug --no-build
- name: Test (Release, HWIntrinsic=0)
env:
DOTNET_EnableHWIntrinsic: "0"
run: dotnet test -c Release --no-build
name: Build & Test

on:
pull_request:
branches: [main]

jobs:
build-and-test:
name: build-and-test-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm]

steps:
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.x
7.x
8.x
9.x

- name: Checkout
uses: actions/checkout@v4

- name: Build (Debug)
run: dotnet build -c Debug

- name: Build (Release)
run: dotnet build -c Release

- name: Test (Debug)
run: dotnet test -c Debug --no-build

- name: Test (Release)
run: dotnet test -c Release --no-build

- name: Test (Debug, AVX2=0)
env:
DOTNET_EnableAVX2: "0"
run: dotnet test -c Debug --no-build

- name: Test (Release, AVX2=0)
env:
DOTNET_EnableAVX2: "0"
run: dotnet test -c Release --no-build

- name: Test (Debug, HWIntrinsic=0)
env:
DOTNET_EnableHWIntrinsic: "0"
run: dotnet test -c Debug --no-build

- name: Test (Release, HWIntrinsic=0)
env:
DOTNET_EnableHWIntrinsic: "0"
run: dotnet test -c Release --no-build
Loading
Loading