github.com/minio/mc@v0.0.0-20240503112107-b471de8d1882/.github/workflows/go-cross.yml (about)

     1  name: Crosscompile
     2  
     3  on:
     4    pull_request:
     5      branches:
     6        - master
     7  
     8  # This ensures that previous jobs for the PR are canceled when the PR is
     9  # updated.
    10  concurrency:
    11    group: ${{ github.workflow }}-${{ github.head_ref }}
    12    cancel-in-progress: true
    13  
    14  permissions:
    15    contents: read
    16  
    17  jobs:
    18    build:
    19      name: Build Tests with Go ${{ matrix.go-version }} on ${{ matrix.os }}
    20      runs-on: ${{ matrix.os }}
    21      strategy:
    22        matrix:
    23          go-version: [1.21.x, 1.22.x]
    24          os: [ubuntu-latest]
    25      steps:
    26        - uses: actions/checkout@v4
    27        - uses: actions/setup-go@v5
    28          with:
    29            go-version: ${{ matrix.go-version }}
    30            check-latest: true
    31        - name: Build on ${{ matrix.os }}
    32          if: matrix.os == 'ubuntu-latest'
    33          env:
    34            CGO_ENABLED: 0
    35            GO111MODULE: on
    36          run: |
    37            sudo sysctl net.ipv6.conf.all.disable_ipv6=0
    38            sudo sysctl net.ipv6.conf.default.disable_ipv6=0
    39            make crosscompile