mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-01 00:31:21 +00:00
c4805e0262
* issue/issue-281-create_binding_to_pedersen_hash * Add //nolint * Add more nolints * move nolint * Remove nolit * Add gcc install * Upd .ci * Remove staticcheck * Add envs * try to exclude pedersen_hash from test * try to fix mac os build * Add include for mac os * Add include for mac os * Fix runner_os * remove test for macos * Change restrictions * restrict tests to ubuntu * Try test windows * Add build constraint
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: Continuous integration
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- stable
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- stable
|
|
env:
|
|
CGO_ENABLED: "1"
|
|
CGO_CXXFLAGS: "-std=c++17"
|
|
jobs:
|
|
tests:
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-20.04, macos-11, windows-2019 ] # list of os: https://github.com/actions/virtual-environments
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: git submodule update --init --recursive --force
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17.x
|
|
- name: Install dependencies
|
|
run: |
|
|
if [ "$RUNNER_OS" == "Linux" ]; then
|
|
sudo apt update && sudo apt install build-essential
|
|
fi
|
|
shell: bash
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
key: ${{ matrix.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
- name: Lint
|
|
if: matrix.os == 'ubuntu-20.04'
|
|
uses: golangci/golangci-lint-action@v2
|
|
with:
|
|
version: v1.42
|
|
skip-go-installation: true
|
|
skip-pkg-cache: true
|
|
skip-build-cache: true
|
|
- name: Install deps
|
|
if: matrix.os == 'windows-2019'
|
|
run: choco upgrade mingw cmake -y --no-progress
|
|
- name: Test
|
|
run: go test ./...
|