-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (50 loc) · 1.8 KB
/
Copy pathscheduled-release-check.yml
File metadata and controls
54 lines (50 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Scheduled Release Check
on:
schedule:
- cron: 0 0,6,12,18 * * *
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
outputs:
needs_build: ${{ steps.compare_versions.outputs.needs_build }}
release: ${{ steps.wgpu_release.outputs.release }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: pozetroninc/github-action-get-latest-release@master
name: Get WGPU release
id: wgpu_release
with:
repository: gfx-rs/wgpu-native
- uses: pozetroninc/github-action-get-latest-release@master
name: Get local release
id: local_release
with:
repository: MyWorldLLC/webgpu-java
- name: Compare versions
id: compare_versions
run: echo "needs_build=${{ steps.wgpu_release.outputs.release != steps.local_release.outputs.release }}" >> "$GITHUB_OUTPUT"
- name: Create release
uses: softprops/action-gh-release@master
id: create_release
if: ${{ steps.compare_versions.outputs.needs_build == 'true' }}
with:
draft: false
prerelease: false
make_latest: 'true'
body: "Automatically generated bindings for https://github.com/gfx-rs/wgpu-native. Supports Java 22."
tag_name: ${{ steps.wgpu_release.outputs.release }}
bindings:
needs: [check]
uses: myworldllc/webgpu-java/.github/workflows/build-and-publish-bindings.yml@main
if: ${{ needs.check.outputs.needs_build == 'true' }}
with:
wgpuVersion: ${{ needs.check.outputs.release }}
secrets:
PKG_PUBLISHING_AUTH_TOKEN: ${{ secrets.PKG_PUBLISHING_AUTH_TOKEN }}
natives:
runs-on: ubuntu-latest
needs: [check]
if: ${{ needs.check.outputs.needs_build == 'true' }}
steps:
- run: echo "TODO - build natives"