9999 - platform : macos-latest
100100 target : macosx
101101 python-version : " 3.11"
102- # - platform: windows-latest
103- # target: windows
104- # python-version: "3.11"
102+ - platform : windows-latest
103+ target : windows
104+ python-version : " 3.11"
105105 - platform : macos-latest
106106 target : iphoneos
107107 python-version : " 3.11"
@@ -210,32 +210,11 @@ jobs:
210210 BUNDLE_NAME="dawn_webgpu_${{needs.get-dawn-version.outputs.chromium_dawn_suffix}}.zip"
211211 echo "bundle_name=$BUNDLE_NAME" >> $GITHUB_OUTPUT
212212
213- - name : Upload bundle artifact
214- uses : actions/upload-artifact@v4
215- with :
216- name : dawn-webgpu-bundle
217- path : Dawn/dist/${{steps.set-bundle-name.outputs.bundle_name}}
218- retention-days : 30
219-
220- create-release :
221- needs : [create-bundle, get-dawn-version]
222- runs-on : ubuntu-latest
223- steps :
224- - name : Checkout code
225- uses : actions/checkout@v4
226-
227- - name : Download bundle artifact
228- uses : actions/download-artifact@v5
229- with :
230- name : dawn-webgpu-bundle
231- path : dawn-bundle/
232- merge-multiple : true
233-
234213 - name : Compute SHA256
235214 id : compute-sha256
236215 run : |
237- cd dawn-bundle
238- sha256sum ${{needs.create -bundle.outputs.bundle_name}} > sha256sum.txt
216+ cd Dawn/dist
217+ sha256sum ${{steps.set -bundle-name .outputs.bundle_name}} > sha256sum.txt
239218 echo "sha256sum=$(cat sha256sum.txt)" >> $GITHUB_OUTPUT
240219
241220 - name : Tag name
@@ -245,34 +224,26 @@ jobs:
245224 echo "tag=$TAG" >> $GITHUB_OUTPUT
246225
247226 - name : Create Release
248- uses : actions/create-release@v1
249- env :
250- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
227+ uses : ncipollo/release-action@v1
251228 with :
252- release_name : Dawn WebGPU from Chromium ${{ needs.get-dawn-version.outputs.chromium_dawn_version }}
253- tag_name : ${{ steps.tag.outputs.tag }}
229+ name : Dawn WebGPU from Chromium ${{ needs.get-dawn-version.outputs.chromium_dawn_version }} (${{ github.event.inputs.config }})
230+ tag : ${{ steps.tag.outputs.tag }}
254231 body : |
255- Dawn WebGPU build matching Chromium ${{ needs.get-dawn-version.outputs.chromium_dawn_version }}.
256- Built from Dawn hash: ${{ needs.get-dawn-version.outputs.chromium_dawn_hash }}
257- SHA256: ${{ steps.compute-sha256.outputs.sha256sum }}
232+ **Chromium channel:** ${{ github.event.inputs.channel }}
233+ **Chromium version:** ${{ needs.get-dawn-version.outputs.chromium_dawn_version }}
234+ **Configuration:** ${{ github.event.inputs.config }}
235+ **Dawn hash:** ${{ needs.get-dawn-version.outputs.chromium_dawn_hash }}
236+ **SHA256:** ${{ steps.compute-sha256.outputs.sha256sum }}
237+
238+ This release contains pre-built Dawn WebGPU libraries in an archive bundle for multiple platforms:
258239
259- This release contains pre-built Dawn WebGPU libraries for multiple platforms:
260240 - linux (x86_64)
261241 - macosx (x86_64 + ARM64)
262242 - iphoneos (ARM64)
263243 - iphonesimulator (x86_64)
244+ - windows (x86_64)
264245
265246 These are just the raw Dawn libraries and do not include the Swift API layer.
266-
267- Built from Chromium channel: ${{ github.event.inputs.channel }}
268- draft : false
269- prerelease : false
270-
271- - name : Upload Release Assets
272- run : |
273- TAG="${{ steps.tag.outputs.tag }}"
274- echo "Uploading to release: $TAG"
275- cd dawn-bundle
276- gh release upload $TAG ${{needs.create-bundle.outputs.bundle_name}} --clobber
277- env :
278- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
247+ artifacts : Dawn/dist/${{steps.set-bundle-name.outputs.bundle_name}}
248+ artifactErrorsFailBuild : true
249+ removeArtifacts : true
0 commit comments