version bump 1.21.0 #563 #33
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: wheel-cibw | |
on: | |
push: # run on push events | |
paths-ignore: # but ignore everything in the docs subfolder | |
- 'docs/**' | |
- 'src/gui*/**' | |
- 'src/netedit/**' | |
- 'tests/netedit/**' | |
branches: | |
- '**' | |
tags: | |
- '*' | |
pull_request: # run on pull requests | |
paths-ignore: # but ignore everything in the docs subfolder | |
- 'docs/**' | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-14] | |
steps: | |
- name: Cloning SUMO | |
uses: actions/checkout@v4 | |
with: | |
path: sumo | |
fetch-depth: 0 | |
# - name: Fetching SUMO tags | |
# run: | | |
# cd sumo | |
# git fetch --tags --force | |
# - name: Preparing wheel eclipse-sumo | |
# run: | | |
# cp sumo/build_config/pyproject.toml sumo/ | |
# python3 sumo/tools/build_config/version.py sumo/tools/build_config/setup-sumo.py sumo/setup.py | |
# - name: Building wheel eclipse-sumo | |
# uses: pypa/[email protected] | |
# with: | |
# package-dir: sumo | |
# output-dir: wheelhouse | |
# env: | |
# CIBW_BEFORE_ALL_MACOS: brew update && brew install --cask xquartz && brew install xerces-c fox proj gdal gl2ps ccache googletest fmt | |
# CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9" | |
# MACOSX_DEPLOYMENT_TARGET: ${{ matrix.os == 'macos-13' && '13.0' || matrix.os == 'macos-14' && '14.0' }} | |
- name: Preparing wheel libsumo | |
run: | | |
python3 sumo/tools/build_config/version.py sumo/tools/build_config/setup-libsumo.py sumo/tools/setup.py | |
- name: Building wheel libsumo | |
uses: pypa/[email protected] | |
with: | |
package-dir: sumo/tools | |
output-dir: wheelhouse | |
env: | |
CIBW_BEFORE_ALL_MACOS: brew update && brew install --cask xquartz && brew install xerces-c fox proj gdal gl2ps ccache googletest fmt | |
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9" | |
CIBW_REPAIR_WHEEL_COMMAND_MACOS: "" # disable repair process to inspect the wheel | |
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.os == 'macos-13' && '13.0' || matrix.os == 'macos-14' && '14.0' }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | |
path: ./wheelhouse/*.whl | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: setup.py | |
path: sumo/tools/setup.py |