forked from NethermindEth/nethermind
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.14 KB
/
build-solutions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build solutions
on:
pull_request:
branches: [master]
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
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
- name: Set up .NET
uses: actions/setup-dotnet@v3
- 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