-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66f23e5
commit 418d522
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
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: | ||
matrix: | ||
#os: [ubuntu-latest, windows-latest, macos-13, macos-14] | ||
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 Build System | ||
run: | | ||
brew update | ||
brew install --cask xquartz | ||
brew install xerces-c fox proj gdal gl2ps ccache googletest fmt | ||
- 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 | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | ||
path: ./wheelhouse/*.whl |