Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GHA workflows for testing s390x and i386 #1971

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,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
16 changes: 16 additions & 0 deletions scripts/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM debian:latest

WORKDIR /ws

ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=UTC

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

COPY . .

RUN cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Release && \
cmake --build build
Loading