... #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Architecture | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| tags: | |
| - "v*" | |
| pull_request: | |
| branches: [main] | |
| merge_group: | |
| branches: [main] | |
| # Weekly build on Mondays at 8 am | |
| schedule: | |
| - cron: "0 8 * * 1" | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| arch: ["s390x"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| with: | |
| platforms: ${{ matrix.arch }} | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build s390x Docker image | |
| run: > | |
| docker buildx build | |
| --file .github/workflows/Dockerfile.architectures | |
| --platform linux/s390x | |
| -t ffcx-s390x | |
| --load | |
| . | |
| - name: Run FFCx unit tests (s390x) | |
| run: | | |
| docker run --rm ffcx-s390x | |
| # test: | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Checkout | |
| # uses: actions/checkout@v4 | |
| # # 1️⃣ Enable QEMU emulation | |
| # - name: Set up QEMU | |
| # uses: docker/setup-qemu-action@v3 | |
| # with: | |
| # platforms: s390x | |
| # # 2️⃣ Enable Docker Buildx | |
| # - name: Set up Docker Buildx | |
| # uses: docker/setup-buildx-action@v3 | |
| # # 3️⃣ Test running an s390x container | |
| # - name: Run s390x Ubuntu | |
| # run: | | |
| # docker run --rm --platform linux/s390x s390x/ubuntu:latest uname -m | |
| # test: | |
| # runs-on: ubuntu-latest | |
| # container: ${{ matrix.arch }}/ubuntu | |
| # strategy: | |
| # matrix: | |
| # arch: ["s390x"] | |
| # steps: | |
| # - name: Checkout FFCx | |
| # uses: actions/checkout@v6 | |
| # - name: Set up Python | |
| # uses: actions/setup-python@v6 | |
| # - name: Install dependencies (non-Python, Linux) | |
| # run: sudo apt-get install -y graphviz libgraphviz-dev ninja-build pkg-config libblas-dev liblapack-dev | |
| # - name: Install FEniCS dependencies | |
| # run: | | |
| # pip install git+https://github.com/FEniCS/ufl.git | |
| # pip install git+https://github.com/FEniCS/basix.git | |
| # - name: Install FFCx | |
| # run: pip install .[ci,optional] | |
| # - name: Run unit tests | |
| # run: > | |
| # python -m pytest test/ | |
| # -n auto | |
| # -W error | |
| # - name: Run FFCx demos | |
| # run: > | |
| # pytest demo/test_demos.py | |
| # -W error | |
| # # -n auto | |