Skip to content

Commit

Permalink
Moved bluez to a separate image
Browse files Browse the repository at this point in the history
  • Loading branch information
chipp committed Jun 27, 2024
1 parent f964d3f commit 6ffdffc
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 201 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.79.0_1
1.79.0_3
7 changes: 1 addition & 6 deletions bin/isabel/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
137 changes: 0 additions & 137 deletions bin/isabel/install_static_libs.sh

This file was deleted.

7 changes: 1 addition & 6 deletions bin/isabel/test.Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
8 changes: 0 additions & 8 deletions bin/isabel/test_libs/amd64.Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions bin/isabel/test_libs/arm64.Dockerfile

This file was deleted.

0 comments on commit 6ffdffc

Please sign in to comment.