Skip to content

Commit 32c85d9

Browse files
committed
Fix variable output issues in Dawn build config
1 parent 051a535 commit 32c85d9

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/dawn.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ env:
2828
jobs:
2929
get-dawn-source:
3030
runs-on: ubuntu-latest
31-
31+
outputs:
32+
chromium_channel: ${{ steps.read-version.outputs.chromium_channel }}
33+
chromium_dawn_version: ${{ steps.read-version.outputs.chromium_dawn_version }}
34+
chromium_dawn_hash: ${{ steps.read-version.outputs.chromium_dawn_hash }}
35+
chromium_dawn_suffix: ${{ steps.read-version.outputs.chromium_dawn_suffix }}
3236
steps:
3337
- name: Checkout code
3438
uses: actions/checkout@v4
@@ -206,8 +210,6 @@ jobs:
206210
create-release:
207211
needs: [create-bundle, get-dawn-source]
208212
runs-on: ubuntu-latest
209-
if: startsWith(github.ref, 'refs/tags/')
210-
211213
steps:
212214
- name: Checkout code
213215
uses: actions/checkout@v4
@@ -220,12 +222,14 @@ jobs:
220222
merge-multiple: true
221223

222224
- name: Compute SHA256
225+
id: compute-sha256
223226
run: |
224227
cd dawn-bundle
225228
sha256sum dawn_webgpu_${{needs.get-dawn-source.outputs.chromium_dawn_suffix}}.zip > sha256sum.txt
226229
echo "sha256sum=$(cat sha256sum.txt)" >> $GITHUB_OUTPUT
227230
228231
- name: Tag name
232+
id: tag
229233
run: |
230234
TAG="dawn-chromium-${{env.DAWN_CHANNEL}}-${{needs.get-dawn-source.outputs.chromium_dawn_version}}"
231235
echo "tag=$TAG" >> $GITHUB_OUTPUT
@@ -236,11 +240,11 @@ jobs:
236240
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
237241
with:
238242
release_name: Dawn WebGPU from Chromium ${{ needs.get-dawn-source.outputs.chromium_dawn_version }}
239-
tag_name: ${{ needs.create-release.outputs.tag }}
243+
tag_name: ${{ steps.tag.outputs.tag }}
240244
body: |
241245
Dawn WebGPU build matching Chromium ${{ needs.get-dawn-source.outputs.chromium_dawn_version }}.
242246
Built from Dawn hash: ${{ needs.get-dawn-source.outputs.chromium_dawn_hash }}
243-
SHA256: ${{ needs.create-release.outputs.sha256sum }}
247+
SHA256: ${{ steps.compute-sha256.outputs.sha256sum }}
244248
245249
This release contains pre-built Dawn WebGPU libraries for multiple platforms:
246250
- linux (x86_64)
@@ -256,7 +260,7 @@ jobs:
256260

257261
- name: Upload Release Assets
258262
run: |
259-
TAG="${{ needs.create-release.outputs.tag }}"
263+
TAG="${{ steps.tag.outputs.tag }}"
260264
if gh release view "$TAG" >/dev/null 2>&1; then
261265
echo "Release '$TAG' already exists. Skipping upload."
262266
else

0 commit comments

Comments
 (0)