| 1 |
name: Linux IBM tests |
| 2 |
|
| 3 |
on: |
| 4 |
pull_request: |
| 5 |
branches: |
| 6 |
- main |
| 7 |
- maintenance/** |
| 8 |
paths-ignore: |
| 9 |
- '**.pyi' |
| 10 |
- '**.md' |
| 11 |
- '**.rst' |
| 12 |
workflow_dispatch: |
| 13 |
|
| 14 |
permissions: |
| 15 |
contents: read |
| 16 |
|
| 17 |
concurrency: |
| 18 |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
| 19 |
cancel-in-progress: true |
| 20 |
|
| 21 |
jobs: |
| 22 |
native_ibm: |
| 23 |
# These jobs runs only in the main NumPy repository. |
| 24 |
# It requires a native ppc64le and s390x GHA runners, which are not available on forks. |
| 25 |
# For more details, see: https://github.com/numpy/numpy/issues/29125 |
| 26 |
if: github.repository == 'numpy/numpy' |
| 27 |
runs-on: ${{ matrix.config.runner }} |
| 28 |
|
| 29 |
strategy: |
| 30 |
fail-fast: false |
| 31 |
matrix: |
| 32 |
config: |
| 33 |
- name: "ppc64le/gcc - baseline(default)" |
| 34 |
args: "-Dallow-noblas=false" |
| 35 |
runner: ubuntu-24.04-ppc64le-p10 |
| 36 |
compiler: "gcc" |
| 37 |
- name: "ppc64le/clang - baseline(default)" |
| 38 |
args: "-Dallow-noblas=false" |
| 39 |
runner: ubuntu-24.04-ppc64le-p10 |
| 40 |
compiler: "clang" |
| 41 |
- name: "s390x/gcc - baseline(default)" |
| 42 |
args: "-Dallow-noblas=false" |
| 43 |
runner: ubuntu-24.04-s390x |
| 44 |
compiler: "gcc" |
| 45 |
- name: "s390x/clang - baseline(default)" |
| 46 |
args: "-Dallow-noblas=false" |
| 47 |
runner: ubuntu-24.04-s390x |
| 48 |
compiler: "clang" |
| 49 |
- name: "s390x/gcc - baseline(Z15/VXE2)" |
| 50 |
args: "-Dallow-noblas=false -Dcpu-baseline=vxe2" |
| 51 |
runner: ubuntu-24.04-s390x |
| 52 |
compiler: "gcc" |
| 53 |
- name: "s390x/clang - baseline(Z15/VXE2)" |
| 54 |
args: "-Dallow-noblas=false -Dcpu-baseline=vxe2" |
| 55 |
runner: ubuntu-24.04-s390x |
| 56 |
compiler: "clang" |
| 57 |
|
| 58 |
name: "${{ matrix.config.name }}" |
| 59 |
steps: |
| 60 |
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 |
| 61 |
with: |
| 62 |
submodules: recursive |
| 63 |
fetch-tags: true |
| 64 |
|
| 65 |
- name: Install dependencies |
| 66 |
run: | |
| 67 |
sudo apt update |
| 68 |
sudo apt install -y python3.12 python3-pip python3-dev ninja-build gfortran \ |
| 69 |
build-essential libopenblas-dev liblapack-dev pkg-config |
| 70 |
pip install --upgrade pip |
| 71 |
pip install -r requirements/build_requirements.txt -r requirements/test_requirements.txt |
| 72 |
echo "/home/runner/.local/bin" >> $GITHUB_PATH |
| 73 |
|
| 74 |
- name: Install clang |
| 75 |
if: matrix.config.compiler == 'clang' |
| 76 |
run: | |
| 77 |
sudo apt install -y clang-20 |
| 78 |
echo CC=clang-20 >> $GITHUB_ENV |
| 79 |
echo CXX=clang++-20 >> $GITHUB_ENV |
| 80 |
|
| 81 |
- name: Meson Build |
| 82 |
run: | |
| 83 |
spin build -- ${{ matrix.config.args }} |
| 84 |
|
| 85 |
- name: Meson Log |
| 86 |
if: always() |
| 87 |
run: cat build/meson-logs/meson-log.txt |
| 88 |
|
| 89 |
- name: Run Tests |
| 90 |
run: | |
| 91 |
spin test -- --timeout=60 --durations=10 |