forked from protolambda/erigon-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (59 loc) · 1.57 KB
/
ci.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Continuous integration
on:
push:
branches:
- main
- stable
- alpha
- op-erigon
- tip/canyon
pull_request:
branches:
- main
- stable
- alpha
- op-erigon
- tip/canyon
env:
CGO_ENABLED: "1"
CGO_CXXFLAGS: "-g -O2 -std=c++17"
GO111MODULE: "on"
jobs:
tests:
strategy:
matrix:
os: [ ubuntu-20.04, macos-11, windows-2022 ] # list of os: https://github.com/actions/virtual-environments
runs-on: ${{ matrix.os }}
steps:
- name: configure Pagefile
if: matrix.os == 'windows-2022'
uses: al-cheb/configure-pagefile-action@v1.3
with:
minimum-size: 8GB
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0 # fetch git tags for "git describe"
- uses: actions/setup-go@v4
with:
go-version: '1.19'
- name: Install deps
if: matrix.os == 'ubuntu-20.04'
run: sudo apt update && sudo apt install build-essential
shell: bash
- name: Install deps
if: matrix.os == 'windows-2022'
run: |
choco upgrade mingw -y --no-progress --version 11.2.0.07112021
choco install cmake -y --no-progress --version 3.23.1
- name: Test win
if: matrix.os == 'windows-2022'
run: make test-no-fuzz
- name: Test
if: matrix.os != 'windows-2022'
run: make test
- name: Lint
if: matrix.os == 'ubuntu-20.04'
uses: golangci/golangci-lint-action@v3
with:
version: v1.52