1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

UTest: Enable sanitizer for utest. (#3247)

1. Enable sanitizer for utest.
2. Allow auto detect jobs for make.
3. Show more information about build cache.
This commit is contained in:
Winlin 2022-11-18 22:02:24 +08:00 committed by winlin
parent 5bae930621
commit 88641b535c
9 changed files with 29 additions and 29 deletions

View file

@ -4,9 +4,8 @@ FROM ${ARCH}${IMAGE} AS build
ARG BUILDPLATFORM
ARG TARGETPLATFORM
ARG JOBS=2
ARG SRS_AUTO_PACKAGER
RUN echo "BUILDPLATFORM: $BUILDPLATFORM, TARGETPLATFORM: $TARGETPLATFORM, JOBS: $JOBS, PACKAGER: ${#SRS_AUTO_PACKAGER}"
RUN echo "BUILDPLATFORM: $BUILDPLATFORM, TARGETPLATFORM: $TARGETPLATFORM, PACKAGER: ${#SRS_AUTO_PACKAGER}"
# https://serverfault.com/questions/949991/how-to-install-tzdata-on-a-ubuntu-docker-image
ENV DEBIAN_FRONTEND noninteractive
@ -24,7 +23,7 @@ WORKDIR /srs/trunk
# Build and install SRS.
# Note that SRT is enabled by default, so we configure without --srt=on.
RUN ./configure --jobs=${JOBS} --gb28181=on --sanitizer-static=on && make -j${JOBS} && make install
RUN ./configure --gb28181=on --sanitizer-static=on && make && make install
# All config files for SRS.
RUN cp -R conf /usr/local/srs/conf && \