Skip to content

Commit

Permalink
ci: update for meson build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Jul 8, 2024
1 parent 66124fb commit 53e8a7a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: "Main Script"
run: |
EXTRA_INSTALL="numpy pybind11"
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
PROJECT_INSTALL_FLAGS="--no-build-isolation"
EXTRA_INSTALL="numpy pybind11 meson-python ninja"
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
. ./build-and-test-py-project.sh
pytest-macos:
Expand All @@ -50,14 +52,11 @@ jobs:
python-version: '3.x'
- name: "Main Script"
run: |
EXTRA_INSTALL="numpy pybind11"
# https://numpy.org/doc/stable/user/building.html#accelerated-blas-lapack-libraries
# e.g. https://github.com/inducer/meshpy/runs/1303881604?check_suite_focus=true
export NPY_BLAS_ORDER=""
export NPY_LAPACK_ORDER=""
export CC=gcc
PROJECT_INSTALL_FLAGS="--no-build-isolation"
EXTRA_INSTALL="numpy pybind11 meson-python ninja"
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
. ./build-and-test-py-project.sh
docs:
Expand All @@ -71,8 +70,10 @@ jobs:
python-version: '3.x'
- name: "Main Script"
run: |
EXTRA_INSTALL="numpy pybind11"
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/ci-support.sh
PROJECT_INSTALL_FLAGS="--no-build-isolation"
EXTRA_INSTALL="numpy pybind11 meson-python ninja"
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/ci-support.sh
. ci-support.sh
build_py_project_in_venv
build_docs
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,26 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-11, windows-2019]
os: [ubuntu-20.04, macos-12, windows-2019]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.17.0

- name: setup xcode version
if: startsWith(matrix.os, 'macos')
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '11'
run: python -m pip install cibuildwheel==2.19.2

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
env:
CIBW_SKIP: "*-musllinux_i686 cp36-* cp37-* pp37-*"
CIBW_SKIP: "*-musllinux_i686 *-manylinux_i686 *-win32 cp36-* cp37-* pp37-* pp*-win*"

- uses: actions/upload-artifact@v4
with:
Expand Down
22 changes: 13 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ Ruff:
- tags

Python 3:
script:
- py_version=3
- EXTRA_INSTALL="numpy pybind11"
- curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
- ". ./build-and-test-py-project.sh"
script: |
py_version=3
PROJECT_INSTALL_FLAGS="--no-build-isolation"
EXTRA_INSTALL="numpy pybind11 meson-python ninja"
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/build-and-test-py-project.sh
. ./build-and-test-py-project.sh
tags:
- python3
except:
Expand All @@ -22,9 +24,11 @@ Python 3:
junit: test/pytest.xml

Documentation:
script:
- EXTRA_INSTALL="numpy pybind11"
- curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/build-docs.sh
- ". ./build-docs.sh"
script: |
PROJECT_INSTALL_FLAGS="--no-build-isolation"
EXTRA_INSTALL="numpy pybind11 meson-python ninja"
curl -L -O -k https://gitlab.tiker.net/inducer/ci-support/raw/main/build-docs.sh
. ./build-docs.sh
tags:
- python3

0 comments on commit 53e8a7a

Please sign in to comment.