Skip to content

Commit e3e056b

Browse files
committed
Let the CI fail if no wrappers are generated
- see #276
1 parent 83a2edb commit e3e056b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
with:
9898
name: wrappers_ubuntu_${{ matrix.container_version }}
9999
path: generated_cpp
100+
if-no-files-found: error
100101

101102
oldschool:
102103
strategy:
@@ -157,6 +158,7 @@ jobs:
157158
with:
158159
name: wrappers_${{ matrix.container_os }}-${{ matrix.container_os_version }}_${{ matrix.configuration }}
159160
path: generated_cpp
161+
if-no-files-found: error
160162

161163
macOS:
162164
strategy:
@@ -243,10 +245,12 @@ jobs:
243245
QTDIR=-UNDEFINED- ./pythonqt_generator --qt-version=${{ steps.versions.outputs.QT_VERSION_FULL }} --include-paths=$QT_ROOT_DIR/lib
244246
245247
- name: Upload Wrappers
248+
if: ${{ contains(matrix.configuration, 'release') }}
246249
uses: actions/upload-artifact@v4
247250
with:
248251
name: wrappers_macos${{ steps.versions.outputs.MACOS_VERSION_SHORT }}_qt${{ steps.versions.outputs.QT_VERSION_SHORT }}
249252
path: generated_cpp
253+
if-no-files-found: error
250254

251255
windows:
252256
strategy:
@@ -358,3 +362,4 @@ jobs:
358362
with:
359363
name: wrappers_${{ matrix.qt-arch }}_${{ steps.versions.outputs.QT_VERSION_SHORT }}
360364
path: generated_cpp
365+
if-no-files-found: error

.github/workflows/build_latest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
with:
9696
name: wrappers_${{ matrix.os }}_${{ steps.setenv.outputs.QT_VERSION_SHORT }}
9797
path: generated_cpp
98+
if-no-files-found: error
9899

99100
- name: Build PythonQt Ubuntu
100101
if: ${{ matrix.os == 'ubuntu' }}

0 commit comments

Comments
 (0)