Skip to content

Commit

Permalink
ci: add multiarch testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ttshivers committed Sep 23, 2020
1 parent 3a5c226 commit 3c96e86
Show file tree
Hide file tree
Showing 26 changed files with 625 additions and 83 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/10-alpine3.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,28 @@ jobs:
build:
name: 10 on alpine3.10
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson('{"arch":["amd64","arm32v6","arm32v7","arm64v8","i386","ppc64le","s390x"]}')}}
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install bats
- run: ./test-build.sh 10 alpine3.10
- name: Checkout
uses: actions/checkout@v2

- name: Install bats
run: sudo apt-get install bats

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Write experimental docker flag
run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
- name: Restart docker daemon
run: sudo systemctl restart docker

- name: Build and test
run: ./test-build.sh 10 alpine3.10 ${{ matrix.arch }}
27 changes: 24 additions & 3 deletions .github/workflows/10-alpine3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,28 @@ jobs:
build:
name: 10 on alpine3.11
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson('{"arch":["amd64","arm32v6","arm32v7","arm64v8","i386","ppc64le","s390x"]}')}}
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install bats
- run: ./test-build.sh 10 alpine3.11
- name: Checkout
uses: actions/checkout@v2

- name: Install bats
run: sudo apt-get install bats

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Write experimental docker flag
run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
- name: Restart docker daemon
run: sudo systemctl restart docker

- name: Build and test
run: ./test-build.sh 10 alpine3.11 ${{ matrix.arch }}
27 changes: 24 additions & 3 deletions .github/workflows/10-alpine3.9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,28 @@ jobs:
build:
name: 10 on alpine3.9
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson('{"arch":["amd64","arm32v6","arm32v7","arm64v8","i386","ppc64le","s390x"]}')}}
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install bats
- run: ./test-build.sh 10 alpine3.9
- name: Checkout
uses: actions/checkout@v2

- name: Install bats
run: sudo apt-get install bats

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Write experimental docker flag
run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
- name: Restart docker daemon
run: sudo systemctl restart docker

- name: Build and test
run: ./test-build.sh 10 alpine3.9 ${{ matrix.arch }}
27 changes: 24 additions & 3 deletions .github/workflows/10-buster-slim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,28 @@ jobs:
build:
name: 10 on buster-slim
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson('{"arch":["amd64","arm32v7","arm64v8","ppc64le","s390x"]}')}}
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install bats
- run: ./test-build.sh 10 buster-slim
- name: Checkout
uses: actions/checkout@v2

- name: Install bats
run: sudo apt-get install bats

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Write experimental docker flag
run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
- name: Restart docker daemon
run: sudo systemctl restart docker

- name: Build and test
run: ./test-build.sh 10 buster-slim ${{ matrix.arch }}
27 changes: 24 additions & 3 deletions .github/workflows/10-buster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,28 @@ jobs:
build:
name: 10 on buster
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson('{"arch":["amd64","arm32v7","arm64v8","ppc64le","s390x"]}')}}
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install bats
- run: ./test-build.sh 10 buster
- name: Checkout
uses: actions/checkout@v2

- name: Install bats
run: sudo apt-get install bats

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Write experimental docker flag
run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
- name: Restart docker daemon
run: sudo systemctl restart docker

- name: Build and test
run: ./test-build.sh 10 buster ${{ matrix.arch }}
27 changes: 24 additions & 3 deletions .github/workflows/10-stretch-slim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,28 @@ jobs:
build:
name: 10 on stretch-slim
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson('{"arch":["amd64","arm32v7","arm64v8"]}')}}
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install bats
- run: ./test-build.sh 10 stretch-slim
- name: Checkout
uses: actions/checkout@v2

- name: Install bats
run: sudo apt-get install bats

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Write experimental docker flag
run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
- name: Restart docker daemon
run: sudo systemctl restart docker

- name: Build and test
run: ./test-build.sh 10 stretch-slim ${{ matrix.arch }}
27 changes: 24 additions & 3 deletions .github/workflows/10-stretch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,28 @@ jobs:
build:
name: 10 on stretch
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson('{"arch":["amd64","arm32v7","arm64v8"]}')}}
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install bats
- run: ./test-build.sh 10 stretch
- name: Checkout
uses: actions/checkout@v2

- name: Install bats
run: sudo apt-get install bats

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Write experimental docker flag
run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
- name: Restart docker daemon
run: sudo systemctl restart docker

- name: Build and test
run: ./test-build.sh 10 stretch ${{ matrix.arch }}
27 changes: 24 additions & 3 deletions .github/workflows/12-alpine3.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,28 @@ jobs:
build:
name: 12 on alpine3.10
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson('{"arch":["amd64","arm32v6","arm32v7","arm64v8","i386","ppc64le","s390x"]}')}}
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install bats
- run: ./test-build.sh 12 alpine3.10
- name: Checkout
uses: actions/checkout@v2

- name: Install bats
run: sudo apt-get install bats

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Write experimental docker flag
run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
- name: Restart docker daemon
run: sudo systemctl restart docker

- name: Build and test
run: ./test-build.sh 12 alpine3.10 ${{ matrix.arch }}
27 changes: 24 additions & 3 deletions .github/workflows/12-alpine3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,28 @@ jobs:
build:
name: 12 on alpine3.11
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson('{"arch":["amd64","arm32v6","arm32v7","arm64v8","i386","ppc64le","s390x"]}')}}
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install bats
- run: ./test-build.sh 12 alpine3.11
- name: Checkout
uses: actions/checkout@v2

- name: Install bats
run: sudo apt-get install bats

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Write experimental docker flag
run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
- name: Restart docker daemon
run: sudo systemctl restart docker

- name: Build and test
run: ./test-build.sh 12 alpine3.11 ${{ matrix.arch }}
27 changes: 24 additions & 3 deletions .github/workflows/12-alpine3.12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,28 @@ jobs:
build:
name: 12 on alpine3.12
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson('{"arch":["amd64","arm32v6","arm32v7","arm64v8","i386","ppc64le","s390x"]}')}}
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install bats
- run: ./test-build.sh 12 alpine3.12
- name: Checkout
uses: actions/checkout@v2

- name: Install bats
run: sudo apt-get install bats

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Write experimental docker flag
run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
- name: Restart docker daemon
run: sudo systemctl restart docker

- name: Build and test
run: ./test-build.sh 12 alpine3.12 ${{ matrix.arch }}
27 changes: 24 additions & 3 deletions .github/workflows/12-alpine3.9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,28 @@ jobs:
build:
name: 12 on alpine3.9
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson('{"arch":["amd64","arm32v6","arm32v7","arm64v8","i386","ppc64le","s390x"]}')}}
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install bats
- run: ./test-build.sh 12 alpine3.9
- name: Checkout
uses: actions/checkout@v2

- name: Install bats
run: sudo apt-get install bats

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Write experimental docker flag
run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
- name: Restart docker daemon
run: sudo systemctl restart docker

- name: Build and test
run: ./test-build.sh 12 alpine3.9 ${{ matrix.arch }}
27 changes: 24 additions & 3 deletions .github/workflows/12-buster-slim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,28 @@ jobs:
build:
name: 12 on buster-slim
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{fromJson('{"arch":["amd64","arm32v7","arm64v8","ppc64le","s390x"]}')}}
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install bats
- run: ./test-build.sh 12 buster-slim
- name: Checkout
uses: actions/checkout@v2

- name: Install bats
run: sudo apt-get install bats

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Write experimental docker flag
run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
- name: Restart docker daemon
run: sudo systemctl restart docker

- name: Build and test
run: ./test-build.sh 12 buster-slim ${{ matrix.arch }}
Loading

0 comments on commit 3c96e86

Please sign in to comment.