diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 6f205fd..759a670 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -21,11 +21,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name: Build locked release image - run: docker build --progress=plain -t robotlb:pr . + run: docker buildx build --platform linux/amd64 --load --progress=plain -t robotlb:pr . - name: Verify runtime dependencies and CLI startup run: | - docker run --rm --entrypoint /bin/sh robotlb:pr -c ' + docker run --rm --platform linux/amd64 --entrypoint /bin/sh robotlb:pr -c ' ldd /usr/local/bin/robotlb /usr/local/bin/robotlb --help > /dev/null ' diff --git a/Dockerfile b/Dockerfile index c055404..4b36df0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.99.0-bookworm AS builder +FROM rust:1.99.1-bookworm AS builder RUN apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev && rm -rf /var/lib/apt/lists/*