diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 14a292f..7e4d896 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -48,38 +48,3 @@ jobs: --label "org.opencontainers.image.source=https://github.com/${{ github.repository }}" \ --cache-from=type=registry,ref=$IMAGE_ID:cache \ --cache-to=type=registry,ref=$IMAGE_ID:cache,mode=max - - test-isabel-libs: - runs-on: ubuntu-latest - - strategy: - matrix: - build_arch: - - arm64 - - amd64 - host_arch: - - arm64 - - amd64 - - steps: - - uses: actions/checkout@v4 - - - name: Log into registry - run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin - - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@master - - - name: Test - run: | - IMAGE_ID=ghcr.io/chipp/isabel - RUST_VERSION=$(cat .rust-version) - TEST_TAG=test-cache-libs-${{ matrix.build_arch }}-${{ matrix.host_arch }} - - docker buildx build . --file bin/isabel/test_libs/${{ matrix.host_arch }}.Dockerfile \ - --load \ - --platform linux/${{ matrix.build_arch }} \ - --build-arg RUST_VERSION="${RUST_VERSION}" \ - --cache-from=type=registry,ref=$IMAGE_ID:$TEST_TAG \ - --cache-to=type=registry,ref=$IMAGE_ID:$TEST_TAG,mode=max diff --git a/.rust-version b/.rust-version index 6af0795..efba0ba 100644 --- a/.rust-version +++ b/.rust-version @@ -1 +1 @@ -1.79.0_1 \ No newline at end of file +1.79.0_3 \ No newline at end of file diff --git a/bin/isabel/Dockerfile b/bin/isabel/Dockerfile index 6377b4e..bffd2b8 100644 --- a/bin/isabel/Dockerfile +++ b/bin/isabel/Dockerfile @@ -1,11 +1,6 @@ ARG RUST_VERSION -FROM ghcr.io/chipp/build.rust.arm64_musl:${RUST_VERSION} AS libs_builder - -COPY ./bin/isabel/install_static_libs.sh ./install_static_libs.sh -RUN chmod +x ./install_static_libs.sh && \ - ./install_static_libs.sh && \ - rm ./install_static_libs.sh +FROM ghcr.io/chipp/bluez.static.arm64_musl:5.66_3 AS libs_builder FROM ghcr.io/chipp/build.rust.arm64_musl:${RUST_VERSION} AS builder diff --git a/bin/isabel/install_static_libs.sh b/bin/isabel/install_static_libs.sh deleted file mode 100644 index 53a8479..0000000 --- a/bin/isabel/install_static_libs.sh +++ /dev/null @@ -1,137 +0,0 @@ -#!/bin/bash - -set -e -set -o pipefail - -apt-get update && apt-get install -y --no-install-recommends \ - autoconf \ - automake \ - gettext \ - libtool \ - musl \ - ninja-build \ - python3 \ - python3-venv - -case $TARGET in - aarch64-linux-musl) - CPU_FAMILY="aarch64" - CPU="aarch64" - ENDIAN="little" - ;; - x86_64-unknown-linux-musl) - CPU_FAMILY="x86_64" - CPU="x86_64" - ENDIAN="little" - ;; - *) - echo "Unknown target: $TARGET" >&2 - exit 1 - ;; -esac - -rm -rf /var/lib/apt/lists/* - -python3 -m venv python -PATH=/python/bin:$PATH -pip3 install meson - -tee meson.cross < - #endif - -+/* define MAX_INPUT for musl */ -+#ifndef MAX_INPUT -+#define MAX_INPUT _POSIX_MAX_INPUT -+#endif -+ - #include "src/shared/util.h" - - void *util_malloc(size_t size) -EOF - -./configure --host=$TARGET --prefix=$PREFIX --disable-shared --enable-static \ - --disable-test --disable-monitor --disable-tools --disable-client --disable-systemd \ - --disable-udev --disable-cups --disable-obex --enable-library --disable-manpages -make -j$(nproc) && make install -cd .. && rm -rf bluez-${BLUEZ_VER}.tar.xz bluez-${BLUEZ_VER} diff --git a/bin/isabel/test.Dockerfile b/bin/isabel/test.Dockerfile index dc3d118..f42befc 100644 --- a/bin/isabel/test.Dockerfile +++ b/bin/isabel/test.Dockerfile @@ -1,11 +1,6 @@ ARG RUST_VERSION -FROM ghcr.io/chipp/build.rust.x86_64_musl:${RUST_VERSION} AS libs_builder - -COPY ./bin/isabel/install_static_libs.sh ./install_static_libs.sh -RUN chmod +x ./install_static_libs.sh && \ - ./install_static_libs.sh && \ - rm ./install_static_libs.sh +FROM ghcr.io/chipp/bluez.static.x86_64_musl:5.66_3 AS libs_builder FROM ghcr.io/chipp/build.rust.x86_64_musl:${RUST_VERSION} AS builder diff --git a/bin/isabel/test_libs/amd64.Dockerfile b/bin/isabel/test_libs/amd64.Dockerfile deleted file mode 100644 index aca7837..0000000 --- a/bin/isabel/test_libs/amd64.Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -ARG RUST_VERSION - -FROM ghcr.io/chipp/build.rust.x86_64_musl:${RUST_VERSION} - -COPY ./bin/isabel/install_static_libs.sh ./install_static_libs.sh -RUN chmod +x ./install_static_libs.sh && \ - ./install_static_libs.sh && \ - rm ./install_static_libs.sh diff --git a/bin/isabel/test_libs/arm64.Dockerfile b/bin/isabel/test_libs/arm64.Dockerfile deleted file mode 100644 index 854a439..0000000 --- a/bin/isabel/test_libs/arm64.Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -ARG RUST_VERSION - -FROM ghcr.io/chipp/build.rust.arm64_musl:${RUST_VERSION} - -COPY ./bin/isabel/install_static_libs.sh ./install_static_libs.sh -RUN chmod +x ./install_static_libs.sh && \ - ./install_static_libs.sh && \ - rm ./install_static_libs.sh