github.com/cosmos/cosmos-sdk@v0.50.10/.github/workflows/build.yml (about)

     1  name: Build SimApp
     2  #  This workflow is run on pushes to main & every Pull Requests where a .go, .mod, .sum have been changed
     3  on:
     4    pull_request:
     5    merge_group:
     6    push:
     7      branches:
     8        - main
     9        - release/**
    10  permissions:
    11    contents: read
    12  
    13  concurrency:
    14    group: ci-${{ github.ref }}-build
    15    cancel-in-progress: true
    16  
    17  jobs:
    18    build:
    19      runs-on: ubuntu-latest
    20      strategy:
    21        matrix:
    22          go-arch: ["amd64", "arm", "arm64"]
    23      steps:
    24        - uses: actions/checkout@v3
    25        - uses: actions/setup-go@v4
    26          with:
    27            go-version: "1.21"
    28            check-latest: true
    29        - uses: technote-space/get-diff-action@v6.1.2
    30          id: git_diff
    31          with:
    32            PATTERNS: |
    33              **/*.go
    34              go.mod
    35              go.sum
    36              **/go.mod
    37              **/go.sum
    38              **/Makefile
    39              Makefile
    40          ###################
    41          #### Build App ####
    42          ###################
    43        - name: Build
    44          if: env.GIT_DIFF
    45          run: GOARCH=${{ matrix.go-arch }} make build
    46        - name: Build Legacy
    47          if: env.GIT_DIFF
    48          run: GOARCH=${{ matrix.go-arch }} COSMOS_BUILD_OPTIONS=legacy make build
    49          ###################
    50          ## Build Tooling ##
    51          ###################
    52        - name: Build Cosmovisor
    53          if: env.GIT_DIFF
    54          run: GOARCH=${{ matrix.go-arch }} make cosmovisor
    55        - name: Build Confix
    56          if: env.GIT_DIFF
    57          run: GOARCH=${{ matrix.go-arch }} make confix
    58        - name: Build Hubl
    59          if: env.GIT_DIFF
    60          run: GOARCH=${{ matrix.go-arch }} make hubl