2021-11-01 16:42:48 -04:00
|
|
|
name: Crosscompile
|
2021-06-18 15:08:33 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2021-11-30 12:22:17 -05:00
|
|
|
- master
|
2021-06-18 15:08:33 -04:00
|
|
|
|
2021-11-07 04:22:59 -05:00
|
|
|
# This ensures that previous jobs for the PR are canceled when the PR is
|
2021-11-01 16:42:48 -04:00
|
|
|
# updated.
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-03-31 13:12:53 -04:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-06-18 15:08:33 -04:00
|
|
|
jobs:
|
|
|
|
build:
|
2021-11-01 16:42:48 -04:00
|
|
|
name: Build Tests with Go ${{ matrix.go-version }} on ${{ matrix.os }}
|
2021-06-18 15:08:33 -04:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-08-26 15:52:29 -04:00
|
|
|
go-version: [1.18.x, 1.19.x]
|
2021-06-18 15:08:33 -04:00
|
|
|
os: [ubuntu-latest]
|
|
|
|
steps:
|
2022-03-31 13:12:53 -04:00
|
|
|
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
|
|
|
|
- uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2
|
2021-06-18 15:08:33 -04:00
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
2022-03-25 11:56:04 -04:00
|
|
|
check-latest: true
|
2021-06-18 15:08:33 -04:00
|
|
|
- name: Build on ${{ matrix.os }}
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
|
|
|
env:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
run: |
|
|
|
|
sudo sysctl net.ipv6.conf.all.disable_ipv6=0
|
|
|
|
sudo sysctl net.ipv6.conf.default.disable_ipv6=0
|
|
|
|
make crosscompile
|