diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 29aab53..7cfcd7b 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -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 }} @@ -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/}" diff --git a/docker/Dockerfile.build b/docker/Dockerfile.build index 7f355ed..ca95b99 100644 --- a/docker/Dockerfile.build +++ b/docker/Dockerfile.build @@ -4,11 +4,12 @@ ARG BASE_IMAGE="debian:sid-slim" FROM ${BASE_IMAGE} AS build LABEL maintainer="Maksym Sobolyev " -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 \