Skip to content

set cppyy STDCXX env var to 17 #69

set cppyy STDCXX env var to 17

set cppyy STDCXX env var to 17 #69

Workflow file for this run

name: wheels
on: [ push, pull_request ]
env:
STDCXX: 17
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-14, macos-13, windows-latest ]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Patch ogdf::Array on Windows
if: runner.os == 'Windows'
run: git --git-dir ogdf apply --directory ogdf fix_Array_windows.patch
- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
with:
package-dir: ./
output-dir: ./wheelhouse
- uses: actions/upload-artifact@v4
if: always()
with:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl
check_contents:
name: Build full dist and check contents
needs: build_wheels
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- uses: actions/upload-artifact/merge@v4
with:
name: "wheels"
pattern: "wheels-*"
delete-merged: true
- name: Download wheels
uses: actions/download-artifact@v4
with:
name: wheels
path: dist
- name: Build sdist
run: |
pip install build click
python -m build --sdist
- name: Test packages
run: |
python test_contents.py
- uses: actions/upload-artifact@v4
if: always()
with:
name: pkgs
path: ./dist
test:
name: Test on ${{ matrix.os }}
needs: check_contents
runs-on: ${{ matrix.os }}
env:
CLING_REBUILD_PCH: 1
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-14, macos-13, windows-latest ]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Download wheels
uses: actions/download-artifact@v4
with:
name: wheels
path: dist
- name: Install wheel
run: pip install --no-index --find-links ./dist ogdf-wheel
- name: Install ogdf-python
run: pip install git+https://github.com/N-Coder/ogdf-python.git
- name: Get ogdf-python info
run: python -m ogdf_python
- name: Test ogdf-python layouts
run: python test_layouts.py
- uses: actions/upload-artifact@v3
if: always()
with:
name: svgs-${{ matrix.os }}
path: ./*.svg