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

Introduce .NET 6.0 #3554

Merged
merged 30 commits into from
Nov 19, 2021
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
9a0db4a
add .net6.0 target framework
matilote Oct 27, 2021
9aee51c
update rocksdb sub to latest master
matilote Oct 27, 2021
adeb792
Merge remote-tracking branch 'origin/master' into feature/net6.0
LukaszRozmej Nov 9, 2021
8e3fde3
Fix solution
LukaszRozmej Nov 9, 2021
a2429f4
Upgrade packages
LukaszRozmej Nov 9, 2021
5c6d643
net6 int256
LukaszRozmej Nov 9, 2021
5609498
Upgrade packages in ethereum tests
LukaszRozmej Nov 9, 2021
45af464
Merge remote-tracking branch 'origin/master' into feature/net6.0
LukaszRozmej Nov 10, 2021
5e91c13
Keep dotnetty on 0.6.0
LukaszRozmej Nov 10, 2021
b3c02ff
add Should_generate_benign_transaction test
LukaszRozmej Nov 10, 2021
7f3449a
dotnet setup in gha
matilote Nov 10, 2021
f3c9150
updating .net test sdk, removing ndm tests
matilote Nov 10, 2021
9b3acfc
updating submodules
matilote Nov 10, 2021
52abb7e
updating Math.Gmp
matilote Nov 10, 2021
05e5d6e
cleanup around packages version
matilote Nov 10, 2021
88b0dca
removing unused scripts and updating deployment scripts
matilote Nov 10, 2021
46057a4
removing trimming
matilote Nov 10, 2021
ee65683
plugins copying fix
matilote Nov 10, 2021
af301c5
Remove some warnings
LukaszRozmej Nov 12, 2021
73e2c67
revert config change
LukaszRozmej Nov 12, 2021
634f566
Revert Math.Gmp.Native issue
LukaszRozmej Nov 12, 2021
7ea2da0
readme to .NET 6.0
matilote Nov 18, 2021
b1c0bff
updating release scripts for net6.0
matilote Nov 18, 2021
db1ce29
fix archive script
matilote Nov 18, 2021
5d3373c
fixing archive script + removing unused Dockerfile
matilote Nov 18, 2021
0fbfc45
add missing chdir
matilote Nov 18, 2021
a3aec72
fixing paths
matilote Nov 18, 2021
4187ebf
Merge remote-tracking branch 'origin/master' into feature/net6.0
LukaszRozmej Nov 19, 2021
d01d10a
update packages
LukaszRozmej Nov 19, 2021
48362a6
change macos package name
matilote Nov 19, 2021
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
11 changes: 11 additions & 0 deletions .github/workflows/build-nethermind-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ jobs:
RELEASE_DIRECTORY: /home/runner/work/nethermind/nethermind
LIN_RELEASE: nethermind-lin-x64
OSX_RELEASE: nethermind-osx-x64
OSX_ARM64_RELEASE: nethermind-osx-arm64
WIN_RELEASE: nethermind-win-x64
LIN_ARM64_RELEASE: nethermind-lin-arm64
LINUX: linux-x64
OSX: osx-x64
OSX_ARM64: osx-arm64
WIN10: win10-x64
LINUX_ARM64: linux-arm64
steps:
Expand All @@ -35,6 +37,10 @@ jobs:
- name: Setting up Build Environment
run: |
npm i pkg @vercel/ncc -g
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Setting up QEMU
uses: docker/setup-qemu-action@v1
- name: Setting up Docker Buildx
Expand All @@ -61,6 +67,11 @@ jobs:
with:
name: nethermind-darwin-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.OSX_RELEASE }}/nethermind-darwin-amd64-*
- uses: actions/upload-artifact@master
name: Uploading Nethermind darwin arm64 package
with:
name: nethermind-darwin-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.OSX_ARM64_RELEASE }}/nethermind-darwin-arm64-*
- uses: actions/upload-artifact@master
name: Uploading Nethermind linux package
with:
Expand Down
25 changes: 19 additions & 6 deletions .github/workflows/release-nethermind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:
OSX_RELEASE: nethermind-osx-x64
WIN_RELEASE: nethermind-win-x64
LIN_ARM64_RELEASE: nethermind-lin-arm64
OSX_ARM64_RELEASE: nethermind-osx-arm64
LINUX: linux-x64
OSX: osx-x64
WIN10: win10-x64
LINUX_ARM64: linux-arm64
OSX_ARM64: osx-arm64
steps:
- name: Checking out Nethermind repository
uses: actions/checkout@master
Expand All @@ -42,6 +44,10 @@ jobs:
- name: Setting up Build Environment
run: |
npm i pkg @vercel/ncc -g
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Setting up QEMU
uses: docker/setup-qemu-action@v1
- name: Setting up Docker Buildx
Expand Down Expand Up @@ -84,10 +90,10 @@ jobs:
name: nethermind-linux-arm64-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.LIN_ARM64_RELEASE }}/nethermind-linux-arm64-*
- uses: actions/upload-artifact@master
name: Uploading plugins package
name: Uploading Nethermind darwin arm64 package
with:
name: plugins
path: ${{ env.RELEASE_DIRECTORY }}/plugins/plugins-*
name: nethermind-darwin-arm64-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.OSX_ARM64_RELEASE }}/nethermind-darwin-arm64-*

trigger-publish:
name: Triggering publish event to different sources
Expand All @@ -110,6 +116,7 @@ jobs:
OSX_RELEASE: nethermind-osx-x64
WIN_RELEASE: nethermind-win-x64
LIN_ARM64_RELEASE: nethermind-lin-arm64
OSX_ARM64_RELEASE: nethermind-osx-arm64
steps:
- name: Checking out Nethermind repository
uses: actions/checkout@master
Expand Down Expand Up @@ -138,10 +145,10 @@ jobs:
name: nethermind-linux-arm64-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.LIN_ARM64_RELEASE }}/
- uses: actions/download-artifact@master
name: Downloading plugins package
name: Downloading Nethermind darwin arm64 package
with:
name: plugins
path: ${{ env.RELEASE_DIRECTORY }}/plugins/
name: nethermind-darwin-arm64-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.OSX_ARM64_RELEASE }}/
- name: Creating Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -158,6 +165,7 @@ jobs:
OSX_RELEASE: nethermind-osx-x64
WIN_RELEASE: nethermind-win-x64
LIN_ARM64_RELEASE: nethermind-lin-arm64
OSX_ARM64_RELEASE: nethermind-darwin-arm64
steps:
- name: Checking out Nethermind repository
uses: actions/checkout@master
Expand All @@ -184,6 +192,11 @@ jobs:
with:
name: nethermind-linux-arm64-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.LIN_ARM64_RELEASE }}/
- uses: actions/download-artifact@master
name: Downloading Nethermind darwin arm64 package
with:
name: nethermind-darwin-arm64-package
path: ${{ env.RELEASE_DIRECTORY }}/${{ env.OSX_ARM64_RELEASE }}/
- name: Configuring GPG Key
run: |
mkdir -p ~/.gnupg/
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/run-codeql-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Building Nethermind solution
run: |
cd src/Nethermind
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/run-consesus-legacy-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Installing Linux packages
if: matrix.os == 'ubuntu-latest'
run: |
Expand All @@ -29,6 +33,10 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Updating submodules
run: git submodule update --init
- name: Ethereum.Blockchain.Legacy
Expand Down
24 changes: 5 additions & 19 deletions .github/workflows/run-nethermind-tests-with-code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
with:
submodules: true
fetch-depth: 0
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Installing Linux packages
if: matrix.os == 'ubuntu-latest'
run: |
Expand Down Expand Up @@ -141,24 +145,6 @@ jobs:
- name: Nethermind.Sockets.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.Sockets.Test
- name: Nethermind.DataMarketplace.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.DataMarketplace.Test
- name: Nethermind.DataMarketplace.Channels.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.DataMarketplace.Channels.Test
- name: Nethermind.DataMarketplace.Consumers.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.DataMarketplace.Consumers.Test
- name: Nethermind.DataMarketplace.Infrastructure.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.DataMarketplace.Infrastructure.Test
- name: Nethermind.DataMarketplace.Subprotocols.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.DataMarketplace.Subprotocols.Test
- name: Nethermind.DataMarketplace.WebSockets.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Nethermind.DataMarketplace.WebSockets.Test
- name: MathGmp.Native
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Math.Gmp.Native/MathGmp.Native.UnitTests
Expand All @@ -183,7 +169,7 @@ jobs:
run: git -c submodule."src/eth2.0-spec-tests".update=none submodule update --init
- name: Set environment variable to exclude specific test projects
if: matrix.os == 'ubuntu-latest'
run: echo 'EXCLUDE_TEST_PROJECTS=/p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Nethermind.HashLib]*%2c[Nethermind.Core.Test]*%2c[Nethermind.Blockchain.Test]*%2c[Nethermind.DataMarketplace.Test]*%2c[Ethereum.Test.Base]*"' >> "$GITHUB_ENV"
run: echo 'EXCLUDE_TEST_PROJECTS=/p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Nethermind.HashLib]*%2c[Nethermind.Core.Test]*%2c[Nethermind.Blockchain.Test]*%2c[Ethereum.Test.Base]*"' >> "$GITHUB_ENV"
- name: Ethereum.Abi.Test
run: |
dotnet test -c Release $EXCLUDE_TEST_PROJECTS src/Nethermind/Ethereum.Abi.Test
Expand Down
52 changes: 28 additions & 24 deletions .github/workflows/run-nethermind-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Installing Linux packages
run: |
sudo apt-get update
Expand Down Expand Up @@ -54,6 +58,10 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Installing Linux packages
run: |
sudo apt-get update
Expand Down Expand Up @@ -98,6 +106,10 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Installing Linux packages
run: |
sudo apt-get update
Expand Down Expand Up @@ -139,6 +151,10 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Installing Linux packages
run: |
sudo apt-get update
Expand Down Expand Up @@ -168,6 +184,10 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Installing Linux packages
run: |
sudo apt-get update
Expand All @@ -181,37 +201,17 @@ jobs:
- name: Nethermind.Sockets.Test
run: |
dotnet test -c Release src/Nethermind/Nethermind.Sockets.Test
- name: Nethermind.DataMarketplace.Test
run: |
dotnet test -c Release src/Nethermind/Nethermind.DataMarketplace.Test
- name: Nethermind.DataMarketplace.Channels.Test
run: |
dotnet test -c Release src/Nethermind/Nethermind.DataMarketplace.Channels.Test
- name: Nethermind.DataMarketplace.Consumers.Test
run: |
dotnet test -c Release src/Nethermind/Nethermind.DataMarketplace.Consumers.Test
- name: Nethermind.DataMarketplace.Providers.Infrastructure.Tests
run: |
dotnet test -c Release src/Nethermind/Nethermind.DataMarketplace.Providers.Infrastructure.Tests
- name: Nethermind.DataMarketplace.Providers.Test
run: |
dotnet test -c Release src/Nethermind/Nethermind.DataMarketplace.Providers.Test
- name: Nethermind.DataMarketplace.Infrastructure.Test
run: |
dotnet test -c Release src/Nethermind/Nethermind.DataMarketplace.Infrastructure.Test
- name: Nethermind.DataMarketplace.Subprotocols.Test
run: |
dotnet test -c Release src/Nethermind/Nethermind.DataMarketplace.Subprotocols.Test
- name: Nethermind.DataMarketplace.WebSockets.Test
run: |
dotnet test -c Release src/Nethermind/Nethermind.DataMarketplace.WebSockets.Test
neth-runner:
name: Nethermind Runner Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Installing Linux packages
run: |
sudo apt-get update
Expand All @@ -227,6 +227,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Unshallow fetching
run: git fetch --unshallow
- name: Updating submodules
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/run-posdao-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install libsnappy-dev libc6-dev libc6
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Cloning Nethermind repo
uses: actions/checkout@v2
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/run-vault-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Updating submodules
- name: Setting up dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Updating submodules
run: git submodule update --init src/Dirichlet src/int256 src/rocksdb-sharp src/Math.Gmp.Native
- name: Installing Linux packages
run: |
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk@sha256:fa19559201c43bc8191c1a095670e242de80a23697d24f5a3460019958637c63 AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:6.0 AS build

ARG TARGETPLATFORM
ARG TARGETOS
Expand All @@ -14,7 +14,7 @@ RUN if [ "$TARGETARCH" = "amd64" ] ; \
dotnet publish src/Nethermind/Nethermind.Runner -r $TARGETOS-$TARGETARCH -c release -o out ; \
fi

FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/aspnet@sha256:1d75db770c7ce82b128744770271bd87dc9d119f0ef15b94cab0f84477abfaec
FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/aspnet:6.0
RUN apt-get update && apt-get -y install libsnappy-dev libc6-dev libc6

WORKDIR /nethermind
Expand Down
16 changes: 0 additions & 16 deletions Dockerfile.e2e

This file was deleted.

4 changes: 2 additions & 2 deletions Dockerfile.stateRunner
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM mcr.microsoft.com/dotnet/sdk@sha256:6edc3ea5eb689712b9ec6ad5777e32c5bfa51db94a3e5fb069278ccf3b74b7c1 AS build
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build

COPY . .

RUN apk add git && \
git submodule update --init src/Dirichlet src/int256 src/Math.Gmp.Native && \
dotnet publish src/Nethermind/Nethermind.State.Test.Runner -c release -o out

FROM mcr.microsoft.com/dotnet/sdk@sha256:6edc3ea5eb689712b9ec6ad5777e32c5bfa51db94a3e5fb069278ccf3b74b7c1
FROM mcr.microsoft.com/dotnet/sdk:6.0

COPY --from=build /out .

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ It syncs fully on:

## Prerequisites :construction:

**.NET 5.0** SDK
**.NET 6.0** SDK

### Windows

Expand Down
Loading