fix(CI/nopch-module-build): ensure build continues after errors (#21457)

This commit is contained in:
sudlud 2025-02-15 14:10:46 +01:00 committed by GitHub
parent fae07daa4c
commit 0d37ff292b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -31,6 +31,11 @@ inputs:
description: Max allowed error count before compilation stops
required: false
type: number
keepgoing:
default: false
description: Flag to continue build after errors
required: false
type: boolean
runs:
using: composite
steps:
@ -121,7 +126,9 @@ runs:
- name: build
shell: bash
working-directory: "${{ github.workspace }}/build"
run: cmake --build . --config "Release" -j "$(($(nproc) + 2))"
run: |
# '--' passes '--keep-going' to the underlying build system (make)
cmake --build . --config "Release" -j "$(($(nproc) + 2))" ${{ inputs.keepgoing == 'true' && '-- --keep-going' || '' }}
- name: install
shell: bash

View File

@ -50,3 +50,4 @@ jobs:
modules: true
pch: false
maxerrors: 0
keepgoing: true