CI: Run 24.04 clang build/test with --enable-asan (#6408)
This commit is contained in:
parent
5ffa05fba0
commit
77e5bb9ec9
|
|
@ -33,11 +33,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
cc: ${{ matrix.cc }}
|
cc: ${{ matrix.cc }}
|
||||||
|
asan: ${{ matrix.asan }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- {os: ubuntu-24.04, cc: gcc}
|
- {os: ubuntu-24.04, cc: gcc, asan: 0}
|
||||||
|
|
||||||
build-2404-clang:
|
build-2404-clang:
|
||||||
name: Build-Ubuntu
|
name: Build-Ubuntu
|
||||||
|
|
@ -45,11 +46,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
cc: ${{ matrix.cc }}
|
cc: ${{ matrix.cc }}
|
||||||
|
asan: ${{ matrix.asan }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- {os: ubuntu-24.04, cc: clang}
|
- {os: ubuntu-24.04, cc: clang, asan: 1}
|
||||||
|
|
||||||
build-2204-gcc:
|
build-2204-gcc:
|
||||||
name: Build-Ubuntu
|
name: Build-Ubuntu
|
||||||
|
|
@ -57,11 +59,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
cc: ${{ matrix.cc }}
|
cc: ${{ matrix.cc }}
|
||||||
|
asan: ${{ matrix.asan }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- {os: ubuntu-22.04, cc: gcc}
|
- {os: ubuntu-22.04, cc: gcc, asan: 0}
|
||||||
|
|
||||||
build-2204-clang:
|
build-2204-clang:
|
||||||
name: Build-Ubuntu
|
name: Build-Ubuntu
|
||||||
|
|
@ -69,11 +72,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
cc: ${{ matrix.cc }}
|
cc: ${{ matrix.cc }}
|
||||||
|
asan: ${{ matrix.asan }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- {os: ubuntu-22.04, cc: clang}
|
- {os: ubuntu-22.04, cc: clang, asan: 0}
|
||||||
|
|
||||||
build-osx-gcc:
|
build-osx-gcc:
|
||||||
name: Build-OSX
|
name: Build-OSX
|
||||||
|
|
@ -82,11 +86,12 @@ jobs:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
os-name: osx
|
os-name: osx
|
||||||
cc: ${{ matrix.cc }}
|
cc: ${{ matrix.cc }}
|
||||||
|
asan: ${{ matrix.asan }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- {os: macos-15, cc: gcc}
|
- {os: macos-15, cc: gcc, asan: 0}
|
||||||
|
|
||||||
build-osx-clang:
|
build-osx-clang:
|
||||||
name: Build-OSX
|
name: Build-OSX
|
||||||
|
|
@ -95,11 +100,12 @@ jobs:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
os-name: osx
|
os-name: osx
|
||||||
cc: ${{ matrix.cc }}
|
cc: ${{ matrix.cc }}
|
||||||
|
asan: ${{ matrix.asan }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- {os: macos-15, cc: clang}
|
- {os: macos-15, cc: clang, asan: 0}
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
name: Build-Windows
|
name: Build-Windows
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,9 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: linux
|
default: linux
|
||||||
|
asan:
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI_OS_NAME: ${{ inputs.os-name }}
|
CI_OS_NAME: ${{ inputs.os-name }}
|
||||||
|
|
@ -38,6 +41,7 @@ jobs:
|
||||||
runs-on: ${{ inputs.os }}
|
runs-on: ${{ inputs.os }}
|
||||||
name: Sub-build | ${{ inputs.os }} | ${{ inputs.cc }}
|
name: Sub-build | ${{ inputs.os }} | ${{ inputs.cc }}
|
||||||
env:
|
env:
|
||||||
|
CI_ASAN: ${{ inputs.asan }}
|
||||||
CI_BUILD_STAGE_NAME: build
|
CI_BUILD_STAGE_NAME: build
|
||||||
CI_RUNS_ON: ${{ inputs.os }}
|
CI_RUNS_ON: ${{ inputs.os }}
|
||||||
CC: ${{ inputs.cc }}
|
CC: ${{ inputs.cc }}
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,11 @@ if [ "$CI_BUILD_STAGE_NAME" = "build" ]; then
|
||||||
|
|
||||||
if [ "$COVERAGE" != 1 ]; then
|
if [ "$COVERAGE" != 1 ]; then
|
||||||
autoconf
|
autoconf
|
||||||
./configure --enable-longtests --enable-ccwarn --prefix="$INSTALL_DIR"
|
CONFIGURE_ARGS="--enable-longtests --enable-ccwarn"
|
||||||
|
if [ "$CI_ASAN" = 1 ]; then
|
||||||
|
CONFIGURE_ARGS="$CONFIGURE_ARGS --enable-asan"
|
||||||
|
fi
|
||||||
|
./configure $CONFIGURE_ARGS --prefix="$INSTALL_DIR"
|
||||||
ccache -z
|
ccache -z
|
||||||
"$MAKE" -j "$NPROC" -k
|
"$MAKE" -j "$NPROC" -k
|
||||||
# 22.04: ccache -s -v
|
# 22.04: ccache -s -v
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue