Optimism plugin #3528
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |