From 46fe9b3e47a097e48dbefedf7f28a256dcfad893 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 5 Jan 2023 14:29:32 +0100 Subject: [PATCH] .github/workflows/test.yml: Also cross-compile to make sure it builds on everything. --- .github/workflows/test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3691ac1..2a6be17 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,6 +5,26 @@ on: - pull_request jobs: + cross-compile: + strategy: + fail-fast: false + matrix: + os: [ linux, freebsd ] + arch: [ 386, amd64, arm, arm64 ] + name: Crosscompile - ${{matrix.os}}-${{matrix.arch}} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - name: compile + id: compile + run: | + ./compile.sh --target ${{matrix.os}} -a ${{matrix.arch}} test: runs-on: ubuntu-latest