name: Ubuntu s390x

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: uraimo/run-on-arch-action@v3
        name: Test
        id: runcmd
        with:
          arch: s390x
          githubToken: ${{ github.token }}
          distro: ubuntu_latest
          install: |
            apt-get update -q -y
            apt-get install -y cmake make g++
          run: |
            cmake -DSIMDUTF_CXX_STANDARD=20  -DSIMDUTF_ATOMIC_BASE64_TESTS=ON -DCMAKE_BUILD_TYPE=Release -B build -DSIMDUTF_FAST_TESTS=On
            cmake --build build -j$(nproc)
            ctest --output-on-failure --test-dir build -j$(nproc)
