diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml index a216ebba6..f1f26954b 100644 --- a/.github/workflows/ant.yml +++ b/.github/workflows/ant.yml @@ -177,9 +177,12 @@ jobs: with: name: lombok.jar + - name: Setup docker container build driver + run: docker buildx create --name container --driver=docker-container container + - name: Build container working-directory: ./docker - run: docker build --build-arg jdk=${{ matrix.jdk }} -t $IMAGE_NAME -f ${{ matrix.tool.name }}/Dockerfile . + run: docker buildx --build-arg jdk=${{ matrix.jdk }} -t $IMAGE_NAME -f ${{ matrix.tool.name }}/Dockerfile --builder=container --cache-to=type=gha,scope=$IMAGE_NAME --cache-from=type=gha,scope=$IMAGE_NAME . - name: Compile in container run: docker run --entrypoint="" -v $(pwd)/lombok.jar:/workspace/lombok.jar $IMAGE_NAME /bin/bash -c "cd classpath; ${{ matrix.tool.cmd }}"