Skip to content

Commit e7ad5a8

Browse files
committed
chore: pin wgpu-native rev in CI (v0.7.1)
1 parent 4c9708a commit e7ad5a8

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

.beads/issues.jsonl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
{"id":"wgpu_mbt-9hy","title":"WGPU: index buffer + draw_indexed","description":"Port render pass index buffer binding + draw_indexed path; validate via offscreen render + readback with beads.","status":"closed","priority":2,"issue_type":"epic","owner":"842376130@qq.com","created_at":"2026-01-26T15:14:02.546582+08:00","created_by":"Milky2018","updated_at":"2026-01-26T15:17:59.404059+08:00","closed_at":"2026-01-26T15:17:59.404059+08:00","close_reason":"Closed"}
6666
{"id":"wgpu_mbt-9hy.1","title":"Declare/bindings: render pass set_index_buffer + draw_indexed","description":"Add C stub for set_index_buffer_u16, raw externs, wrapper methods for set_index_buffer_u16 and draw_indexed.","status":"closed","priority":2,"issue_type":"task","owner":"842376130@qq.com","created_at":"2026-01-26T15:14:19.00723+08:00","created_by":"Milky2018","updated_at":"2026-01-26T15:17:59.401231+08:00","closed_at":"2026-01-26T15:17:59.401231+08:00","close_reason":"Closed","dependencies":[{"issue_id":"wgpu_mbt-9hy.1","depends_on_id":"wgpu_mbt-9hy","type":"parent-child","created_at":"2026-01-26T15:14:19.007781+08:00","created_by":"Milky2018"}]}
6767
{"id":"wgpu_mbt-9hy.2","title":"Test: offscreen render with index buffer (beads)","description":"Use existing pos2 vertex pipeline but call draw_indexed with bound index buffer; read back red pixel.","status":"closed","priority":2,"issue_type":"task","owner":"842376130@qq.com","created_at":"2026-01-26T15:14:19.087288+08:00","created_by":"Milky2018","updated_at":"2026-01-26T15:17:59.40285+08:00","closed_at":"2026-01-26T15:17:59.40285+08:00","close_reason":"Closed","dependencies":[{"issue_id":"wgpu_mbt-9hy.2","depends_on_id":"wgpu_mbt-9hy","type":"parent-child","created_at":"2026-01-26T15:14:19.087899+08:00","created_by":"Milky2018"}]}
68+
{"id":"wgpu_mbt-9na","title":"CI: pin wgpu-native revision (fix linux-vulkan smoke)","description":"CI flaked/fails when building wgpu-native from moving HEAD; pin to known-good commit used for release assets.","status":"closed","priority":0,"issue_type":"task","owner":"842376130@qq.com","created_at":"2026-02-02T21:09:36.246569+08:00","created_by":"Milky2018","updated_at":"2026-02-02T21:11:39.127234+08:00","closed_at":"2026-02-02T21:11:39.127234+08:00","close_reason":"Pinned wgpu-native revision in CI and release workflows to avoid breakage from upstream HEAD; bumped patch version."}
6869
{"id":"wgpu_mbt-9ne","title":"Refactor: correctness + structure cleanup (no gen-verify)","status":"closed","priority":1,"issue_type":"epic","owner":"842376130@qq.com","created_at":"2026-02-02T15:40:01.316524+08:00","created_by":"Milky2018","updated_at":"2026-02-02T17:47:29.388282+08:00","closed_at":"2026-02-02T17:47:29.388282+08:00","close_reason":"All children closed; epic complete."}
6970
{"id":"wgpu_mbt-9ne.1","title":"P0: RenderPipelineDescBuilder: remove silent clamping; make overflow diagnosable","description":"Current C builder clamps counts (e.g. color targets / vertex buffers / attrs) to fixed maxima. This can silently drop caller intent. Refactor builder so overflow becomes diagnosable (e.g. return Bool/Result, or keep legacy API but add checked variants + expose actual counts). Update tests accordingly.","status":"closed","priority":0,"issue_type":"task","owner":"842376130@qq.com","created_at":"2026-02-02T15:40:01.447685+08:00","created_by":"Milky2018","updated_at":"2026-02-02T16:05:45.155317+08:00","closed_at":"2026-02-02T16:05:45.155317+08:00","close_reason":"Implemented fail-fast RenderPipelineDescBuilder (no silent clamping); overflow/index errors abort; add_vertex_attribute now returns Unit.","dependencies":[{"issue_id":"wgpu_mbt-9ne.1","depends_on_id":"wgpu_mbt-9ne","type":"parent-child","created_at":"2026-02-02T15:40:01.448884+08:00","created_by":"Milky2018"}]}
7071
{"id":"wgpu_mbt-9ne.2","title":"Design: pipeline builder overflow API strategy (compat vs breaking)","description":"Decide whether to (a) keep existing builder methods and add *_checked methods, or (b) change signatures (breaking) and bump major. Document the chosen behavior.","status":"closed","priority":1,"issue_type":"task","owner":"842376130@qq.com","created_at":"2026-02-02T15:40:01.575097+08:00","created_by":"Milky2018","updated_at":"2026-02-02T16:05:45.046023+08:00","closed_at":"2026-02-02T16:05:45.046023+08:00","close_reason":"Chose breaking/fail-fast strategy: builder APIs abort on invalid/overflow; add_vertex_attribute signature changed.","dependencies":[{"issue_id":"wgpu_mbt-9ne.2","depends_on_id":"wgpu_mbt-9ne","type":"parent-child","created_at":"2026-02-02T15:40:01.576173+08:00","created_by":"Milky2018"}]}

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [main]
88

9+
env:
10+
WGPU_NATIVE_REV: ba4deb5d935652f40c7e051b15cbb5d097219941
11+
912
jobs:
1013
linux:
1114
name: Linux (build-only)
@@ -74,6 +77,9 @@ jobs:
7477
set -euo pipefail
7578
git clone --depth 1 --recurse-submodules --shallow-submodules https://github.com/gfx-rs/wgpu-native "$RUNNER_TEMP/wgpu-native"
7679
cd "$RUNNER_TEMP/wgpu-native"
80+
git fetch --depth 1 origin "$WGPU_NATIVE_REV"
81+
git checkout "$WGPU_NATIVE_REV"
82+
git submodule update --init --recursive --depth 1
7783
cargo build --release --no-default-features --features vulkan,wgsl
7884
echo "MBT_WGPU_NATIVE_LIB=$RUNNER_TEMP/wgpu-native/target/release/libwgpu_native.so" >> "$GITHUB_ENV"
7985

.github/workflows/release-native.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
required: false
1111
type: string
1212

13+
env:
14+
WGPU_NATIVE_REV: ba4deb5d935652f40c7e051b15cbb5d097219941
15+
1316
permissions:
1417
contents: write
1518

@@ -60,6 +63,9 @@ jobs:
6063
set -euo pipefail
6164
git clone --depth 1 --recurse-submodules --shallow-submodules https://github.com/gfx-rs/wgpu-native "$RUNNER_TEMP/wgpu-native"
6265
cd "$RUNNER_TEMP/wgpu-native"
66+
git fetch --depth 1 origin "$WGPU_NATIVE_REV"
67+
git checkout "$WGPU_NATIVE_REV"
68+
git submodule update --init --recursive --depth 1
6369
cargo build --release --no-default-features --features "${{ matrix.features }}"
6470
6571
mkdir -p "$GITHUB_WORKSPACE/dist"

moon.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Milky2018/wgpu_mbt",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"readme": "README.mbt.md",
55
"repository": "https://github.com/moonbit-community/wgpu-mbt.git",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)