Skip to content

Commit

Permalink
Generate output on test failure.
Browse files Browse the repository at this point in the history
Use clang.

Filter out mips64le in debian-sid for now. It fails to test,
something broken with binary generation.
  • Loading branch information
sobomax committed Aug 9, 2024
1 parent 167ab15 commit 24d6c94
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ jobs:
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v3
with:
platforms: arm64,arm,riscv64,mips64le,ppc64le,s390x

- name: Log in to Docker Hub
if: ${{ env.DOCKER_RW }}
Expand All @@ -174,7 +172,16 @@ jobs:

- name: Set environments
run: |
PLATFORMS="`docker manifest inspect ${{ env.BASE_IMAGE }} | jq -r '.manifests[] | "\(.platform.os)/\(.platform.architecture)"' | sort -u | paste -sd ','`"
# mips64 seems to be broken at the moment...
if [ "${{ env.BASE_IMAGE }}" = "debian:sid-slim" ]
then
FILT="grep -v mips64le"
else
FILT="cat"
fi
PLATFORMS="`docker manifest inspect ${{ env.BASE_IMAGE }} | \
jq -r '.manifests[] | "\(.platform.os)/\(.platform.architecture)"' | \
sort -u | ${FILT} | paste -sd ','`"
echo "PLATFORMS=${PLATFORMS}" >> $GITHUB_ENV
GIT_BRANCH="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
GIT_BRANCH="${GIT_BRANCH#refs/tags/}"
Expand Down
5 changes: 3 additions & 2 deletions docker/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ ARG BASE_IMAGE="debian:sid-slim"
FROM ${BASE_IMAGE} AS build
LABEL maintainer="Maksym Sobolyev <[email protected]>"

ARG BUILD_PKGS="cmake make gcc libc6-dev openssl"
ARG BUILD_PKGS="cmake make clang libc6-dev openssl"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends ${BUILD_PKGS}
WORKDIR /src
RUN --mount=type=bind,target=.,rw cmake -B build && make -C build all test install
RUN --mount=type=bind,target=.,rw cmake -B build && \
make -C build CTEST_OUTPUT_ON_FAILURE=1 all test install
FROM ${BASE_IMAGE} AS clean
COPY --from=build /usr/local/lib/libg722.* /usr/local/lib/
COPY --from=build --exclude=g722_common.h --exclude=g722_private.h \
Expand Down

0 comments on commit 24d6c94

Please sign in to comment.