Browse code

Build on armv7, aarch64, s390x, and ppc64le

John Hawthorn authored on 12/10/2020 00:34:44
Showing 1 changed files

... ...
@@ -11,7 +11,7 @@ jobs:
11 11
         os: [ubuntu-latest, macOS-latest]
12 12
     runs-on: ${{ matrix.os }}
13 13
     steps:
14
-    - uses: actions/checkout@v1
14
+    - uses: actions/checkout@v2
15 15
     - name: Compile and run tests
16 16
       run: make && make test
17 17
       env:
... ...
@@ -21,16 +21,36 @@ jobs:
21 21
     runs-on: ubuntu-latest
22 22
     container: docker://alpine
23 23
     steps:
24
-    - uses: actions/checkout@v1
24
+    - uses: actions/checkout@v2
25 25
     - name: Install build dependencies
26 26
       run: apk add build-base
27 27
     - name: Compile and run tests
28 28
       run: make && make test
29
+  multiarch_test:
30
+    name: Test on ${{ matrix.arch }}
31
+    strategy:
32
+      matrix:
33
+        arch: [armv7, aarch64, s390x, ppc64le]
34
+    runs-on: ubuntu-20.04
35
+    steps:
36
+      - uses: actions/checkout@v2
37
+      - uses: uraimo/run-on-arch-action@v2.0.5
38
+        name: Compile and run tests
39
+        id: test
40
+        with:
41
+          arch: ${{ matrix.arch }}
42
+          distro: ubuntu20.04
43
+          githubToken: ${{ github.token }}
44
+          install: |
45
+            apt-get update -q -y
46
+            apt-get install -y gcc make
47
+            rm -rf /var/lib/apt/lists/*
48
+          run: make && make test
29 49
   acceptance_test:
30 50
     name: Acceptance Tests
31 51
     runs-on: ubuntu-latest
32 52
     steps:
33
-    - uses: actions/checkout@v1
53
+    - uses: actions/checkout@v2
34 54
     - name: Set up Ruby 2.6
35 55
       uses: actions/setup-ruby@v1
36 56
       with: