Skip to content

Commit

Permalink
Trying with fedora.
Browse files Browse the repository at this point in the history
  • Loading branch information
armfazh committed Jun 11, 2020
1 parent 3e6b098 commit 4755dc8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .github/actions/fedora-s390x/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM 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"]
7 changes: 7 additions & 0 deletions .github/actions/fedora-s390x/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: 'fedora-s390x'
description: 'builds golang inside linux/s390x'

runs:
using: 'docker'
image: 'Dockerfile'
9 changes: 9 additions & 0 deletions .github/actions/fedora-s390x/entry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

sh -c "echo $*"
echo "Hello"
date
pwd
ls
GODEBUG=asyncpreemptoff=1 go test -v ./math/...
date
19 changes: 8 additions & 11 deletions .github/workflows/ci-actions.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: CIRCL
on:
push:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4755dc8

Please sign in to comment.