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

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Add s390x and i386 GHA workflows
  • Loading branch information
alexreinking authored and keithw committed May 25, 2023
commit e5a9091c479423525bf834c0a87ec8f5b0c23b5e
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
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