|
14 | 14 | required: true |
15 | 15 | type: string |
16 | 16 | default: 'x.y.z' |
17 | | - dev_version: |
18 | | - description: 'Whether to build a development version for only selected Python versions' |
| 17 | + full_build: |
| 18 | + description: 'Build for all Python versions (if false, 3.13 and 3.14 only)' |
19 | 19 | required: true |
20 | 20 | type: boolean |
21 | 21 | default: false |
| 22 | + build_type: |
| 23 | + description: 'Build configuration (Release/Debug)' |
| 24 | + required: false |
| 25 | + type: string |
| 26 | + default: 'Release' |
22 | 27 | repo: |
23 | 28 | description: 'Repository to build from (owner/name)' |
24 | 29 | required: false |
|
43 | 48 | required: true |
44 | 49 | type: string |
45 | 50 | default: 'x.y.z' |
46 | | - dev_version: |
47 | | - description: 'Whether to build a development version for only selected Python versions' |
| 51 | + full_build: |
| 52 | + description: 'Build for all Python versions (if false, 3.13 and 3.14 only)' |
48 | 53 | required: true |
49 | 54 | type: boolean |
50 | 55 | default: false |
| 56 | + build_type: |
| 57 | + description: 'Build configuration (Release/Debug)' |
| 58 | + required: false |
| 59 | + type: string |
| 60 | + default: 'Release' |
51 | 61 | repo: |
52 | 62 | description: 'Repository to build from (owner/name)' |
53 | 63 | required: false |
@@ -104,26 +114,34 @@ jobs: |
104 | 114 | - name: Prepare version |
105 | 115 | run: perl -i -pe 's/__version__ = "[^"]+"/__version__ = "'"${{ inputs.version }}"'"/' lib/stormpy/_version.py |
106 | 116 | - name: Build wheels (development) |
107 | | - if: ${{ inputs.dev_version }} |
| 117 | + if: ${{ !inputs.full_build }} |
108 | 118 | uses: pypa/cibuildwheel@v3.4.1 |
109 | 119 | env: |
110 | 120 | CIBW_PLATFORM: ${{ matrix.platform }} |
111 | 121 | CIBW_ARCHS: ${{ matrix.archs }} |
112 | 122 | MACOSX_DEPLOYMENT_TARGET: ${{ matrix.deploy_target }} |
113 | 123 | # Build development version only on latest Python versions |
114 | 124 | CIBW_BUILD: "cp313-* cp314-*" |
115 | | - CIBW_ENVIRONMENT: STORM_VERSION=${{ inputs.storm_version }} NR_JOBS=4 |
| 125 | + CIBW_CONFIG_SETTINGS: cmake.build-type=${{ inputs.build_type }} |
| 126 | + CIBW_ENVIRONMENT: >- |
| 127 | + STORM_VERSION=${{ inputs.storm_version }} |
| 128 | + NR_JOBS=4 |
| 129 | + CMAKE_BUILD_TYPE=${{ inputs.build_type }} |
116 | 130 | - name: Build wheels (stable) |
117 | | - if: ${{ !inputs.dev_version }} |
| 131 | + if: ${{ inputs.full_build }} |
118 | 132 | uses: pypa/cibuildwheel@v3.4.1 |
119 | 133 | env: |
120 | 134 | CIBW_PLATFORM: ${{ matrix.platform }} |
121 | 135 | CIBW_ARCHS: ${{ matrix.archs }} |
122 | 136 | MACOSX_DEPLOYMENT_TARGET: ${{ matrix.deploy_target }} |
123 | | - CIBW_ENVIRONMENT: STORM_VERSION=${{ inputs.storm_version }} NR_JOBS=4 |
| 137 | + CIBW_CONFIG_SETTINGS: cmake.build-type=${{ inputs.build_type }} |
| 138 | + CIBW_ENVIRONMENT: >- |
| 139 | + STORM_VERSION=${{ inputs.storm_version }} |
| 140 | + NR_JOBS=4 |
| 141 | + CMAKE_BUILD_TYPE=${{ inputs.build_type }} |
124 | 142 | - uses: actions/upload-artifact@v7 |
125 | 143 | with: |
126 | | - name: stormpy-wheels-${{ matrix.os }} |
| 144 | + name: stormpy-wheels-${{ matrix.os }}-${{ inputs.build_type }} |
127 | 145 | path: ./wheelhouse/*.whl |
128 | 146 |
|
129 | 147 |
|
@@ -177,7 +195,7 @@ jobs: |
177 | 195 | steps: |
178 | 196 | - uses: actions/download-artifact@v8 |
179 | 197 | with: |
180 | | - pattern: stormpy-wheels-${{ matrix.arch.name }} |
| 198 | + pattern: stormpy-wheels-${{ matrix.arch.name }}-${{ inputs.build_type }} |
181 | 199 | path: dist |
182 | 200 | merge-multiple: true |
183 | 201 | - name: Checkout test files (default current repo) |
@@ -266,7 +284,7 @@ jobs: |
266 | 284 | xcode-version: ${{ matrix.distro.xcode }} |
267 | 285 | - uses: actions/download-artifact@v8 |
268 | 286 | with: |
269 | | - pattern: stormpy-wheels-${{ matrix.distro.os }} |
| 287 | + pattern: stormpy-wheels-${{ matrix.distro.os }}-${{ inputs.build_type }} |
270 | 288 | path: dist |
271 | 289 | merge-multiple: true |
272 | 290 | - name: Install from wheel |
|
0 commit comments