diff --git a/.github/actions/fedora-s390x/Dockerfile b/.github/actions/fedora-s390x/Dockerfile new file mode 100644 index 000000000..b2a0030e1 --- /dev/null +++ b/.github/actions/fedora-s390x/Dockerfile @@ -0,0 +1,8 @@ +FROM --platform=linux/s390x multiarch/fedora:29-s390x + +COPY entry.sh /entry.sh + +RUN sh -c 'curl https://dl.google.com/go/go1.14.4.linux-s390x.tar.gz | tar xz -C /usr/local' +RUN ln -s /usr/local/go/bin/go /usr/local/bin/go + +ENTRYPOINT ["sh", "/entry.sh"] diff --git a/.github/actions/fedora-s390x/action.yml b/.github/actions/fedora-s390x/action.yml new file mode 100644 index 000000000..43f5d8218 --- /dev/null +++ b/.github/actions/fedora-s390x/action.yml @@ -0,0 +1,7 @@ +--- +name: 'fedora-s390x' +description: 'builds golang inside linux/s390x' + +runs: + using: 'docker' + image: 'Dockerfile' diff --git a/.github/actions/fedora-s390x/entry.sh b/.github/actions/fedora-s390x/entry.sh new file mode 100755 index 000000000..dcd6f306c --- /dev/null +++ b/.github/actions/fedora-s390x/entry.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +sh -c "echo $*" +echo "Hello" +date +pwd +ls +uname -a +GODEBUG=asyncpreemptoff=1 go test -v ./math/... +date diff --git a/.github/workflows/ci-actions.yml b/.github/workflows/ci-actions.yml index 8241e833b..a8bdcef83 100644 --- a/.github/workflows/ci-actions.yml +++ b/.github/workflows/ci-actions.yml @@ -1,3 +1,4 @@ +--- name: CIRCL on: push: @@ -34,28 +35,24 @@ jobs: run: go build -v ./... - name: Testing run: go test -v ./... - exotic_job: - name: Go-${{matrix.CFG[2]}}/${{matrix.CFG[0]}} + s390x_job: + name: Go-1.14/s390x runs-on: ubuntu-18.04 - strategy: - matrix: - CFG: [ [s390x,s390x,1.14], [arm64,arm64v8,1.14] ] steps: - uses: actions/checkout@v2 - name: Enabling Docker Experimental run: | - echo $'{\n "experimental": true\n}' | sudo tee /etc/docker/daemon.json + echo $'{\n\t"experimental": true\n}' | sudo tee /etc/docker/daemon.json sudo service docker restart - name: Pulling Images run: | docker pull -q multiarch/qemu-user-static + docker pull -q multiarch/fedora:29-s390x docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - - uses: docker://s390x/golang:1.14 - with: - options: --platform linux/s390x - args: go version + - name: Testing + uses: ./.github/actions/fedora-s390x coverage_amd64_job: - needs: [ amd64_job ] + needs: [amd64_job] if: github.event_name == 'push' runs-on: ubuntu-18.04 name: amd64/coverage