From cebf6a706a164aa3e9ad0c493ab7a18367b6a8f8 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Mon, 21 Dec 2020 14:30:08 +0100 Subject: [PATCH] run tests on aarch64, ppc64le and armv7 --- .github/workflows/CI.yml | 49 ++++++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 12 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7090d674..47e9351e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -27,15 +27,40 @@ jobs: - name: Run tests run: | - go test -integration -v ./... - go test -testserver -v ./... - go test -integration -testserver -v ./... - go test -integration -allocator -v ./... - go test -testserver -allocator -v ./... - go test -integration -testserver -allocator -v ./... - go test -race -integration -v ./... - go test -race -testserver -v ./... - go test -race -integration -testserver -v ./... - go test -race -integration -allocator -v ./... - go test -race -testserver -allocator -v ./... - go test -race -integration -allocator -testserver -v ./... + make integration + make integration_w_race + + run-tests-other-archs: + name: Run tests on other archs + runs-on: ubuntu-latest + strategy: + matrix: + include: + - arch: aarch64 + distro: ubuntu20.04 + go-arch: arm64 + - arch: ppc64le + distro: ubuntu20.04 + go-arch: ppc64le + - arch: armv7 + distro: ubuntu20.04 + go-arch: armv6l + steps: + - uses: actions/checkout@v2 + - uses: uraimo/run-on-arch-action@v2.0.8 + name: Run tests + with: + arch: ${{ matrix.arch }} + distro: ${{ matrix.distro }} + shell: /bin/bash + + install: | + apt-get update -q -y + apt-get install -q -y curl gcc make openssh-sftp-server + GO_VERSION=$(curl https://golang.org/VERSION?m=text) + curl --verbose -o go.tar.gz -L https://golang.org/dl/${GO_VERSION}.linux-${{ matrix.go-arch }}.tar.gz + tar -C /usr/local -xzf go.tar.gz + + run: | + export PATH=$PATH:/usr/local/go/bin + make integration