Skip to content
Closed
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
34 changes: 34 additions & 0 deletions .github/workflows/bigendian.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env bash

set -e
set -u
set -x

#
# see: https://github.xiaomo-station.topmunity/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
26 changes: 26 additions & 0 deletions .github/workflows/bigendian.yml
Original file line number Diff line number Diff line change
@@ -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'