From f8d96249c2fd960cd764f251f8f0fd8e7d622e1c Mon Sep 17 00:00:00 2001 From: Martin Hickey Date: Fri, 1 Apr 2022 16:52:04 +0100 Subject: [PATCH] [ci] Do cross architecture build of collector This job will help to see if any issues introduced to cross binary builds, when a commit is pushed. Signed-off-by: Martin Hickey --- .github/workflows/build-and-test.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 4245f2ef7c55..6ab058c1c1e9 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -198,3 +198,28 @@ jobs: file: ./coverage.txt fail_ci_if_error: true verbose: true + crossbuild: + name: Crossbuild Collector + needs: [setup-environment] + runs-on: ubuntu-latest + timeout-minutes: 10 + strategy: + fail-fast: false + matrix: + include: + - goos: linux + goarch: 386 + - goos: linux + goarch: arm64 + - goos: darwin + goarch: arm64 + - goos: windows + goarch: 386 + + steps: + - name: Build + env: + GOOS: ${{matrix.goos}} + GOARCH: ${{matrix.goarch}} + run: | + make otelcorecol \ No newline at end of file