diff --git a/.github/workflows/bigendian.sh b/.github/workflows/bigendian.sh new file mode 100644 index 0000000000..18d477f8b8 --- /dev/null +++ b/.github/workflows/bigendian.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash + +set -e +set -u +set -x + +# +# see: https://github.community/t/testing-against-multiple-architectures/17111/6 +# + +echo ================================= +lscpu | grep Endian +echo ================================= + +export DEBIAN_FRONTEND=${DEBIAN_FRONTEND:-noninteractive} + +apt-get update -y +apt-get install -y \ + git \ + python3 \ + python3-setuptools \ + python3-setuptools-scm \ + python3-pip \ + python3-pytest \ + python3-msgpack \ + python3-fasteners \ + python3-fsspec \ + python3-numcodecs \ + python3-asciitree + +python3 setup.py build # Generate version +python3 -m pip install -U fsspec +python3 -m pip install --no-deps . +python3 -m pytest -sv diff --git a/.github/workflows/bigendian.yml b/.github/workflows/bigendian.yml new file mode 100644 index 0000000000..77be63d16b --- /dev/null +++ b/.github/workflows/bigendian.yml @@ -0,0 +1,26 @@ +# This workflow uses a docker image to simulate a big-endian +# platform. +name: Big-Endian Testing + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - run: docker run --rm --privileged multiarch/qemu-user-static:register --reset + + - uses: docker://multiarch/ubuntu-core:s390x-focal + with: + args: 'bash .github/workflows/bigendian.sh'