Skip to content

Commit be979c0

Browse files
committed
chore: add input param
1 parent dc357c8 commit be979c0

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
description: "Name of a target repository"
1818
default: 'tensorflow/tensorflow'
1919
required: false
20+
ref:
21+
description: "Git reference to build from (branch, tag, commit)"
22+
default: 'master'
23+
required: false
2024
xnn_options:
2125
description: "XNNPack build options"
2226
default: '--define=xnn_enable_avx512amx=false --define=xnn_enable_avxvnniint8=false --define=xnn_enable_avxvnni=false --define=xnn_enable_avx512fp16=false'
@@ -58,7 +62,7 @@ jobs:
5862
- uses: actions/checkout@v4
5963
with:
6064
repository: ${{ env.REPOSITORY }}
61-
ref: v${{ env.VERSION }}
65+
ref: ${{ inputs.ref }}
6266
submodules: recursive
6367
github-server-url: https://github.com
6468
- uses: bazel-contrib/setup-bazel@0.15.0
@@ -141,7 +145,7 @@ jobs:
141145
- uses: actions/checkout@v4
142146
with:
143147
repository: ${{ env.REPOSITORY }}
144-
ref: v${{ env.VERSION }}
148+
ref: ${{ inputs.ref }}
145149
submodules: recursive
146150
github-server-url: https://github.com
147151
- uses: bazel-contrib/setup-bazel@0.15.0
@@ -191,7 +195,7 @@ jobs:
191195
- uses: actions/checkout@v4
192196
with:
193197
repository: ${{ env.REPOSITORY }}
194-
ref: v${{ env.VERSION }}
198+
ref: ${{ inputs.ref }}
195199
submodules: recursive
196200
github-server-url: https://github.com
197201
- uses: bazel-contrib/setup-bazel@0.15.0
@@ -235,7 +239,7 @@ jobs:
235239
- uses: actions/checkout@v4
236240
with:
237241
repository: ${{ env.REPOSITORY }}
238-
ref: v${{ env.VERSION }}
242+
ref: ${{ inputs.ref }}
239243
submodules: recursive
240244
github-server-url: https://github.com
241245
- uses: bazel-contrib/setup-bazel@0.15.0
@@ -308,7 +312,7 @@ jobs:
308312
- uses: actions/checkout@v4
309313
with:
310314
repository: ${{ env.REPOSITORY }}
311-
ref: v${{ env.VERSION }}
315+
ref: ${{ inputs.ref }}
312316
submodules: recursive
313317
github-server-url: https://github.com
314318
- uses: bazel-contrib/setup-bazel@0.15.0
@@ -336,6 +340,6 @@ jobs:
336340
- uses: softprops/action-gh-release@v2
337341
if: ${{ inputs.release }}
338342
with:
339-
name: TFLite Runtime v${{ env.VERSION }}
343+
name: TFLite Runtime ${{ inputs.ref }}
340344
tag_name: ${{ env.VERSION }}
341345
target_commitish: ${{ github.sha }}

0 commit comments

Comments
 (0)