From ef9e01c7600b66a2981fd8378c4e9e113f0f9034 Mon Sep 17 00:00:00 2001 From: Wen Sun <30698014+sunwen18@users.noreply.github.com> Date: Wed, 14 Dec 2022 14:56:31 -0800 Subject: [PATCH] Add CI job to build linux and run unit test on s390x (#7707) * create job to build linux and run unit test on s390x * update * update * update * update * update * print out machine type * create regression test to build a big endian arch and run unit tests daily * rename and schedule run on pr merged and on request * udpate Co-authored-by: Wen Sun Co-authored-by: Derek Bailey --- .github/workflows/extrabuild.yml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/extrabuild.yml diff --git a/.github/workflows/extrabuild.yml b/.github/workflows/extrabuild.yml new file mode 100644 index 00000000000..5246435ae70 --- /dev/null +++ b/.github/workflows/extrabuild.yml @@ -0,0 +1,35 @@ +name: Build and unit tests that are more time consuming +permissions: read-all + +on: + # For manual tests. + workflow_dispatch: + pull_request: + types: + - closed + schedule: + - cron: "30 20 * * *" + +jobs: + build-linux-s390x: + name: Build Linux on s390x arch and run unit tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: uraimo/run-on-arch-action@v2 + name: Run commands + id: runcmd + with: + arch: s390x + distro: ubuntu_latest + install: | + apt-get update -q -y + apt-get -y install cmake + apt-get -y install make + apt-get -y install g++ + run: | + lscpu | grep Endian + cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release + make -j + ./flattests +