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
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Code owners are automatically requested for review on every pull request.
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

* @Marchhill
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,28 @@ jobs:
retention-days: ${{ env.RETENTION }}
if-no-files-found: error

verify-generated:
name: Verify generated code and formatting
runs-on: ubuntu-latest
steps:
- name: Check out blst-bindings repository
uses: actions/checkout@v5

- name: Set up .NET
uses: actions/setup-dotnet@v5

- name: Regenerate point group bindings
run: dotnet run --project src/Nethermind.Crypto.Bls.Gen

# stage first so newly generated (untracked) files are also compared
- name: Check for drift
run: |
git add -A
git diff --cached --exit-code

- name: Verify formatting
run: dotnet format whitespace src/Nethermind.Crypto.Bls.slnx --verify-no-changes

test:
name: Test
needs: [build-linux, build-macos, build-windows]
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ Run the benchmarks (optionally filtered by class, e.g. `--filter '*MsmBenchmarks
```sh
dotnet run --project src/Nethermind.Crypto.Bls.Bench -c release
```

`Bls.G1.cs` and `Bls.G2.cs` are generated from a shared template. To change them, edit
`src/Nethermind.Crypto.Bls.Gen/PointGroup.template` and regenerate (CI verifies they match):

```sh
dotnet run --project src/Nethermind.Crypto.Bls.Gen
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
</PropertyGroup>
</Project>
Loading
Loading