Skip to content

Merge pull request #6 from 0xPolygon/mardizzone/sync-main-fork #44

Merge pull request #6 from 0xPolygon/mardizzone/sync-main-fork

Merge pull request #6 from 0xPolygon/mardizzone/sync-main-fork #44

Workflow file for this run

name: Build
# Tests runs different tests (test_abci_apps, test_abci_cli, test_apps)
# This workflow runs on every push to main or release branch and every pull requests
# All jobs will pass without running if no *{.go, .mod, .sum} files have been modified
on:
pull_request:
merge_group:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
goarch: ["arm", "amd64"]
goos: ["linux"]
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- id: filter
uses: dorny/paths-filter@v3
with:
filters: |
code:
- '**/*.go'
- 'Makefile'
- 'go.*'
- run: echo "GO_VERSION=$(cat .github/workflows/go-version.env | grep GO_VERSION | cut -d '=' -f2)" >> $GITHUB_ENV
if: steps.filter.outputs.code == 'true'
- uses: actions/setup-go@v5
if: steps.filter.outputs.code == 'true'
with:
go-version: ${{ env.GO_VERSION }}
- name: install
if: steps.filter.outputs.code == 'true'
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} make build