|
17 | 17 | description: "Name of a target repository" |
18 | 18 | default: 'tensorflow/tensorflow' |
19 | 19 | required: false |
| 20 | + ref: |
| 21 | + description: "Git reference to build from (branch, tag, commit)" |
| 22 | + default: 'master' |
| 23 | + required: false |
20 | 24 | xnn_options: |
21 | 25 | description: "XNNPack build options" |
22 | 26 | default: '--define=xnn_enable_avx512amx=false --define=xnn_enable_avxvnniint8=false --define=xnn_enable_avxvnni=false --define=xnn_enable_avx512fp16=false' |
|
58 | 62 | - uses: actions/checkout@v4 |
59 | 63 | with: |
60 | 64 | repository: ${{ env.REPOSITORY }} |
61 | | - ref: v${{ env.VERSION }} |
| 65 | + ref: ${{ inputs.ref }} |
62 | 66 | submodules: recursive |
63 | 67 | github-server-url: https://github.com |
64 | 68 | - uses: bazel-contrib/setup-bazel@0.15.0 |
@@ -141,7 +145,7 @@ jobs: |
141 | 145 | - uses: actions/checkout@v4 |
142 | 146 | with: |
143 | 147 | repository: ${{ env.REPOSITORY }} |
144 | | - ref: v${{ env.VERSION }} |
| 148 | + ref: ${{ inputs.ref }} |
145 | 149 | submodules: recursive |
146 | 150 | github-server-url: https://github.com |
147 | 151 | - uses: bazel-contrib/setup-bazel@0.15.0 |
@@ -191,7 +195,7 @@ jobs: |
191 | 195 | - uses: actions/checkout@v4 |
192 | 196 | with: |
193 | 197 | repository: ${{ env.REPOSITORY }} |
194 | | - ref: v${{ env.VERSION }} |
| 198 | + ref: ${{ inputs.ref }} |
195 | 199 | submodules: recursive |
196 | 200 | github-server-url: https://github.com |
197 | 201 | - uses: bazel-contrib/setup-bazel@0.15.0 |
@@ -235,7 +239,7 @@ jobs: |
235 | 239 | - uses: actions/checkout@v4 |
236 | 240 | with: |
237 | 241 | repository: ${{ env.REPOSITORY }} |
238 | | - ref: v${{ env.VERSION }} |
| 242 | + ref: ${{ inputs.ref }} |
239 | 243 | submodules: recursive |
240 | 244 | github-server-url: https://github.com |
241 | 245 | - uses: bazel-contrib/setup-bazel@0.15.0 |
@@ -308,7 +312,7 @@ jobs: |
308 | 312 | - uses: actions/checkout@v4 |
309 | 313 | with: |
310 | 314 | repository: ${{ env.REPOSITORY }} |
311 | | - ref: v${{ env.VERSION }} |
| 315 | + ref: ${{ inputs.ref }} |
312 | 316 | submodules: recursive |
313 | 317 | github-server-url: https://github.com |
314 | 318 | - uses: bazel-contrib/setup-bazel@0.15.0 |
@@ -336,6 +340,6 @@ jobs: |
336 | 340 | - uses: softprops/action-gh-release@v2 |
337 | 341 | if: ${{ inputs.release }} |
338 | 342 | with: |
339 | | - name: TFLite Runtime v${{ env.VERSION }} |
| 343 | + name: TFLite Runtime ${{ inputs.ref }} |
340 | 344 | tag_name: ${{ env.VERSION }} |
341 | 345 | target_commitish: ${{ github.sha }} |
0 commit comments