Skip to content

Commit 978f85d

Browse files
committed
github: build-test-llvm-project: Add build-args
We need this now after commit dcc15cd ("github: Make tag specific to architecture"). Unfortunately, I don't see a clear way to pass in build-args conditionally to docker/build-push-action, so we provide a dummy list of arguments that can be used when no build arguments are needed (i.e., for epoch one). Signed-off-by: Nathan Chancellor <[email protected]>
1 parent 59022f8 commit 978f85d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/actions/build-test-llvm-project/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ inputs:
55
arch:
66
description: Architecture to build containers for
77
required: true
8+
build-args:
9+
description: List of build arguments to pass along to Docker
10+
required: false
11+
default: NONE=none
812
file:
913
description: Dockerfile to build the container from
1014
required: true
@@ -24,6 +28,7 @@ runs:
2428
- name: Build llvm-project
2529
uses: docker/build-push-action@v3
2630
with:
31+
build-args: ${{ inputs.build-args }}
2732
context: ./llvm-project
2833
file: ./llvm-project/${{ inputs.file }}
2934
load: true

0 commit comments

Comments
 (0)