mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +03:00
23 lines
718 B
YAML
23 lines
718 B
YAML
on: [push, pull_request]
|
|
jobs:
|
|
crosscompile:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
go: [ "1.17.x", "1.18.x" ]
|
|
runs-on: ubuntu-latest
|
|
name: "Cross Compilation (Go ${{matrix.go}})"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
stable: '!contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")'
|
|
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: .github/workflows/cross-compile.sh
|