github.com/Finschia/ostracon@v1.1.5/.github/workflows/build.yml (about)

     1  name: Build for Linux
     2  on:
     3    pull_request:
     4    push:
     5  
     6  jobs:
     7  
     8    build-linux:
     9      name: Build
    10      runs-on: ubuntu-latest
    11      strategy:
    12        fail-fast: false
    13        matrix:
    14          include:
    15            - goarch: "amd64"
    16              gcc: "gcc"
    17              package: ""
    18              host: ""
    19            - goarch: "arm64"
    20              gcc: "aarch64-linux-gnu-gcc"
    21              package: "g++-aarch64-linux-gnu"
    22              host: "aarch64-linux-gnu"
    23      timeout-minutes: 5
    24      steps:
    25        - run: sudo apt update && sudo apt install -y ${{ matrix.package }} qemu-user-binfmt
    26          if: "matrix.package != ''"
    27        - uses: actions/setup-go@v4
    28          with:
    29            go-version: '1.20'
    30        - uses: actions/checkout@v4
    31        - uses: technote-space/get-diff-action@v6.1.2
    32          with:
    33            PATTERNS: |
    34              **/**.go
    35              go.mod
    36              go.sum
    37        - name: Build Linux
    38          run: GOOS=linux GOARCH=${{ matrix.goarch }} CC=${{ matrix.gcc }} TARGET_HOST=${{ matrix.host }} make build
    39          if: "env.GIT_DIFF != ''"