github.com/danielpfeifer02/quic-go-prio-packs@v0.41.0-28/.github/workflows/cross-compile.yml (about)

     1  on: [push, pull_request]
     2  jobs:
     3    crosscompile:
     4      strategy:
     5        fail-fast: false
     6        matrix:
     7          go: [ "1.21.x", "1.22.x" ]
     8      runs-on: ${{ fromJSON(vars['CROSS_COMPILE_RUNNER_UBUNTU'] || '"ubuntu-latest"') }}
     9      name: "Cross Compilation (Go ${{matrix.go}})"
    10      steps:
    11        - uses: actions/checkout@v4
    12        - uses: actions/setup-go@v5
    13          with:
    14            go-version: ${{ matrix.go }}
    15        - name: Install build utils
    16          run: |
    17            sudo apt-get update
    18            sudo apt-get install -y gcc-multilib
    19        - name: Install dependencies
    20          run: go build example/main.go
    21        - name: Run cross compilation
    22          # run in parallel on as many cores as are available on the machine
    23          run: go tool dist list | xargs -I % -P "$(nproc)" .github/workflows/cross-compile.sh %