Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Ensure ChainId is always set in 2930 and 1559 txs (#6061) #9

Ensure ChainId is always set in 2930 and 1559 txs (#6061)

Ensure ChainId is always set in 2930 and 1559 txs (#6061) #9

name: Build solutions
on:
pull_request:
branches: [master]
push:
branches: [master]
defaults:
run:
working-directory: src/Nethermind
env:
BUILD_CONFIG: release
DOTNET_VERSION: 7
DOTNET_INSTALL_DIR: '~/.dotnet'
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: "1"
TERM: xterm
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Cache dotnet
id: cache-dotnet
uses: actions/cache@v3
with:
path: ${{ env.DOTNET_INSTALL_DIR }}
key: ${{ runner.os }}-dotnet-${{ env.DOTNET_VERSION }}
restore-keys: ${{ runner.os }}-dotnet-${{ env.DOTNET_VERSION }}
- name: Set up .NET
if: ${{ steps.cache-dotnet.outputs.cache-hit != 'true' }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install Apt Packages
uses: awalsh128/cache-apt-pkgs-action@v1.2.4
with:
packages: libsnappy-dev libc6-dev libc6
version: 1.0
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: true
- name: Cache nuget
id: cache-nuget
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
- name: Install dependencies
run: |
dotnet restore Nethermind.sln
dotnet restore EthereumTests.sln
dotnet restore Benchmarks.sln
- name: Build Nethermind.sln
run: dotnet build Nethermind.sln -c ${{ env.BUILD_CONFIG }} --no-restore
- name: Build EthereumTests.sln
run: dotnet build EthereumTests.sln -c ${{ env.BUILD_CONFIG }} --no-restore
- name: Build Benchmarks.sln
run: dotnet build Benchmarks.sln -c ${{ env.BUILD_CONFIG }} --no-restore