@@ -39,6 +39,7 @@ import kotlin.collections.toTypedArray
3939 * @param config BuildKit config file
4040 * @param configInline Inline BuildKit config
4141 * @param append Append additional nodes to the builder
42+ * @param cacheBinary Cache buildx binary to GitHub Actions cache backend
4243 * @param cleanup Cleanup temp files and remove builder at the end of a job
4344 * @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
4445 * the binding
@@ -90,6 +91,10 @@ public data class SetupBuildxActionV3 private constructor(
9091 * Append additional nodes to the builder
9192 */
9293 public val append : String? = null ,
94+ /* *
95+ * Cache buildx binary to GitHub Actions cache backend
96+ */
97+ public val cacheBinary : Boolean? = null ,
9398 /* *
9499 * Cleanup temp files and remove builder at the end of a job
95100 */
@@ -118,13 +123,14 @@ public data class SetupBuildxActionV3 private constructor(
118123 config: String? = null ,
119124 configInline: String? = null ,
120125 append: String? = null ,
126+ cacheBinary: Boolean? = null ,
121127 cleanup: Boolean? = null ,
122128 _customInputs : Map <String , String > = mapOf (),
123129 _customVersion : String? = null ,
124130 ) : this (version= version, driver= driver, driverOpts= driverOpts, buildkitdFlags= buildkitdFlags,
125131 install= install, use= use, endpoint= endpoint, platforms= platforms, config= config,
126- configInline= configInline, append= append, cleanup = cleanup, _customInputs = _customInputs ,
127- _customVersion = _customVersion )
132+ configInline= configInline, append= append, cacheBinary = cacheBinary, cleanup = cleanup ,
133+ _customInputs = _customInputs , _customVersion = _customVersion )
128134
129135 @Suppress(" SpreadOperator" )
130136 override fun toYamlArguments (): LinkedHashMap <String , String > = linkedMapOf(
@@ -140,6 +146,7 @@ public data class SetupBuildxActionV3 private constructor(
140146 config?.let { " config" to it },
141147 configInline?.let { " config-inline" to it },
142148 append?.let { " append" to it },
149+ cacheBinary?.let { " cache-binary" to it.toString() },
143150 cleanup?.let { " cleanup" to it.toString() },
144151 * _customInputs .toList().toTypedArray(),
145152 ).toTypedArray()
0 commit comments