From c7c9a76af5546dfe8e4b095445692dedc292ca77 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Thu, 4 Jan 2024 21:25:59 +0100 Subject: [PATCH] build: add step to build LLVM 17 base image Signed-off-by: deadprogram --- .github/workflows/docker.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 6918cec084..8842678fe7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -54,7 +54,21 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push + - name: Build and push LLVM base image + uses: docker/build-push-action@v5 + with: + target: tinygo-llvm-build + context: . + push: true + tags: | + tinygo/llvm-17 + tinygo/llvm-17:latest + ghcr.io/tinygo-org/llvm-17 + ghcr.io/tinygo-org/llvm-17:latest + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max + - name: Build and push tinygo-dev image uses: docker/build-push-action@v5 with: context: .