Workaround for removed emmo:hasDimension #2270
Workflow file for this run
This file contains 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: CI build wheels | |
on: | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
env: | |
container_registry: ghcr.io | |
jobs: | |
build_wheels: | |
name: Build wheels | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# 64-bit manylinux | |
- os: ubuntu-20.04 | |
system_type: ["manylinux", "_2_34"] | |
arch: x86_64 | |
py_minors: 8,12 | |
#- os: ubuntu-20.04 | |
# system_type: ["manylinux", "_2_28"] | |
# arch: x86_64 | |
# py_minors: 8,12 | |
#- os: ubuntu-20.04 | |
# system_type: ["manylinux", "2014"] | |
# arch: x86_64 | |
# py_minors: 8,12 | |
#- os: ubuntu-20.04 | |
# system_type: ["manylinux", "2010"] | |
# arch: x86_64 | |
# py_minors: 8,9 | |
# 64-bit musllinux | |
- os: ubuntu-20.04 | |
system_type: ["musllinux", "_1_2"] | |
arch: x86_64 | |
py_minors: 8,11 | |
# Python 3.12 fails since cibuildwheel still depends on distutils | |
# for musllinux | |
#- os: ubuntu-20.04 | |
# system_type: ["musllinux", "_1_1"] | |
# arch: x86_64 | |
# py_minors: 8,11 | |
# 32-bit manylinux | |
- os: ubuntu-20.04 | |
system_type: ["manylinux", "2014"] | |
arch: i686 | |
py_minors: 10,12 | |
# Python 3.12 fails since cibuildwheel still depends on distutils | |
# for musllinux | |
#- os: ubuntu-20.04 | |
# system_type: ["manylinux", "2010"] | |
# arch: i686 | |
# py_minors: 8,9 | |
# 32-bit musllinux | |
- os: ubuntu-20.04 | |
system_type: ["musllinux", "_1_2"] | |
arch: i686 | |
py_minors: 8,11 | |
# Python 3.12 fails since cibuildwheel still depends on distutils | |
# for musllinux | |
#- os: ubuntu-20.04 | |
# system_type: ["musllinux", "_1_1"] | |
# arch: i686 | |
# py_minors: 8,11 | |
# 64-bit Windows | |
- os: windows-2019 | |
system_type: ["win", ""] | |
arch: amd64 | |
py_minors: 8,12 | |
# 32-bit Windows | |
# See issue #220: https://github.com/SINTEF/dlite/issues/220 | |
# - os: windows-2019 | |
# system_type: ["win32", ""] | |
# arch: "" | |
# py_minors: 7,10 | |
# 64-bit (Intel) macOS | |
# See issue #221: https://github.com/SINTEF/dlite/issues/221 | |
# - os: macos-10.15 | |
# system_type: ["macosx", ""] | |
# arch: x86_64 | |
# py_minors: 7,10 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.${{ contains(matrix.py_minors, ',') && 'x' || matrix.py_minors }}" | |
architecture: ${{ matrix.arch == '' && 'x86' || 'x64' }} | |
- name: Login to GitHub Container Registry | |
if: startsWith(matrix.os, 'ubuntu') | |
uses: docker/login-action@v3 | |
with: | |
registry: ${{ env.container_registry }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install cibuildwheel | |
run: | | |
python -m pip install -U pip | |
python -m pip install -U setuptools wheel | |
python -m pip install -U cibuildwheel | |
# See pyproject.toml (under python/) for cibuildwheel configuration | |
- name: Build wheels with cibuildwheel | |
run: | | |
python -m cibuildwheel --print-build-identifiers python | |
python -m cibuildwheel --output-dir wheelhouse python | |
env: | |
CIBW_BUILD: cp3${{ contains(matrix.py_minors, ',') && format('{{{0}}}', matrix.py_minors) || matrix.py_minors }}-${{ matrix.system_type[0] }}${{ matrix.arch != '' && '_' || '' }}${{ matrix.arch }} | |
CIBW_MANYLINUX_X86_64_IMAGE: ${{ env.container_registry }}/sintef/dlite-python-manylinux${{ matrix.system_type[1] }}_x86_64:latest | |
CIBW_MANYLINUX_I686_IMAGE: ${{ env.container_registry }}/sintef/dlite-python-manylinux${{ matrix.system_type[1] }}_i686:latest | |
CIBW_MUSLLINUX_X86_64_IMAGE: ${{ env.container_registry }}/sintef/dlite-python-musllinux${{ matrix.system_type[1] }}_x86_64:latest | |
CIBW_MUSLLINUX_I686_IMAGE: ${{ env.container_registry }}/sintef/dlite-python-musllinux${{ matrix.system_type[1] }}_i686:latest |