Skip to content

Commit

Permalink
Fix solution builds and add debug build configuration (#6456)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubo authored Jan 4, 2024
1 parent 4cb9a94 commit 6c9309c
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions .github/workflows/build-solutions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,20 @@ on:
push:
branches: [master]

defaults:
run:
working-directory: src/Nethermind

env:
BUILD_CONFIG: release
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: 1
TERM: xterm

jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
config: [release, debug]
solution: [Nethermind, EthereumTests, Benchmarks]
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install Linux packages
run: sudo apt-get update && sudo apt-get install libsnappy-dev
submodules: ${{ matrix.solution == 'EthereumTests' }}
- name: Set up .NET
uses: actions/setup-dotnet@v4
- 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
- name: Build ${{ matrix.solution }}.sln
run: dotnet build src/Nethermind/${{ matrix.solution }}.sln -c ${{ matrix.config }}

0 comments on commit 6c9309c

Please sign in to comment.