mirror of
https://github.com/TokTok/c-toxcore
synced 2026-05-26 03:14:22 +00:00
b202ef7a51
- Drop the MSVC-only `/wd4200` copt that the GNU/zig toolchain rejects. - Use C++ casts in `ev_test_util.cc` to satisfy `-Wold-style-cast`. - Refresh the bootstrap node list with live TCP relays; the old ones no longer respond, so `tcp_relay_test` timed out. - Shard `tox_network_test` so it fits the test timeout under tsan. - Pin smatch to 1.74 in sparse.Dockerfile; its HEAD no longer builds. - Fix the bazel-msan CircleCI target; lossless_packet_test moved to auto_tests/scenarios/.
36 lines
916 B
Docker
36 lines
916 B
Docker
FROM toxchat/c-toxcore:sources AS sources
|
|
FROM ubuntu:22.04
|
|
|
|
RUN apt-get update && \
|
|
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
creduce \
|
|
g++ \
|
|
gcc \
|
|
git \
|
|
libc-dev \
|
|
libopus-dev \
|
|
libsodium-dev \
|
|
libsqlite3-dev \
|
|
libssl-dev \
|
|
libvpx-dev \
|
|
llvm-dev \
|
|
make \
|
|
pkg-config \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /work/smatch
|
|
RUN git clone --depth=1 --branch 1.74 https://repo.or.cz/smatch.git /work/smatch
|
|
COPY other/docker/sparse/local.mk /work/smatch/local.mk
|
|
RUN make install -j4 PREFIX=/usr/local
|
|
|
|
WORKDIR /work/c-toxcore
|
|
COPY --from=sources /src/ /work/c-toxcore
|
|
#COPY other/deploy/single-file/make_single_file /work/c-toxcore/
|
|
#RUN ./make_single_file auto_tests/tox_new_test.c > crash.c
|
|
#RUN sparsec $(pkg-config --cflags --libs libsodium opus vpx) crash.c
|
|
|
|
COPY other/docker/sparse/Makefile /work/c-toxcore/
|
|
RUN make -j4
|