Skip to content

Commit

Permalink
Add s390x and i386 GHA workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreinking committed Aug 27, 2022
1 parent 0b83fe4 commit 1175b7d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,31 @@ jobs:
run: cmake --build out --target run-c-api-tests
- name: tests
run: cmake --build out --target run-tests

build-arch:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch: [s390x, i386]
steps:
- uses: actions/checkout@v1
with:
submodules: true

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: ${{matrix.arch}}

- name: Build image
run: docker build --platform linux/${{matrix.arch}} -t wabt -f scripts/Dockerfile .

- name: Unit tests
run: docker run --rm -t wabt cmake --build build --target run-unittests

- name: C API tests
run: docker run --rm -t wabt cmake --build build --target run-c-api-tests

- name: Tests
run: docker run --rm -t wabt cmake --build build --target run-tests
15 changes: 15 additions & 0 deletions scripts/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM debian:latest

WORKDIR /ws

ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC

COPY . .

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
apt-get update && \
apt-get install -y git g++ cmake ninja-build python3 file && \
cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Release && \
cmake --build build

0 comments on commit 1175b7d

Please sign in to comment.