From 6c9309c50a8eace6557295fcacd05f213a43349f Mon Sep 17 00:00:00 2001 From: Ruben Buniatyan Date: Thu, 4 Jan 2024 23:14:46 +0100 Subject: [PATCH] Fix solution builds and add debug build configuration (#6456) --- .github/workflows/build-solutions.yml | 32 ++++++--------------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build-solutions.yml b/.github/workflows/build-solutions.yml index 930bf01e379..f339c0f2920 100644 --- a/.github/workflows/build-solutions.yml +++ b/.github/workflows/build-solutions.yml @@ -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 }}