mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 12:47:36 +03:00
23 lines
807 B
YAML
23 lines
807 B
YAML
on: [push, pull_request]
|
|
jobs:
|
|
crosscompile:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
go: [ "1.20.x", "1.21.x" ]
|
|
runs-on: ${{ fromJSON(vars['CROSS_COMPILE_RUNNER_UBUNTU'] || '"ubuntu-latest"') }}
|
|
name: "Cross Compilation (Go ${{matrix.go}})"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ matrix.go }}
|
|
- name: Install build utils
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y gcc-multilib
|
|
- name: Install dependencies
|
|
run: go build example/main.go
|
|
- name: Run cross compilation
|
|
# run in parallel on as many cores as are available on the machine
|
|
run: go tool dist list | xargs -I % -P "$(nproc)" .github/workflows/cross-compile.sh %
|