Skip to content

Commit b25d002

Browse files
committed
ci(release-server): build webui before cargo build
RustEmbed requires webui/dist/ at compile time; without it the #[derive(RustEmbed)] expansion fails and WebUiAssets::get is missing. Add Node 20 + pnpm 9 setup and run pnpm -C webui install/build.
1 parent a4aaf9b commit b25d002

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/release-server.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,22 @@ jobs:
3939
- name: Setup Rust
4040
uses: dtolnay/rust-toolchain@stable
4141

42+
- name: Setup Node
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: 20
46+
47+
- name: Setup pnpm
48+
uses: pnpm/action-setup@v4
49+
with:
50+
version: 9
51+
52+
- name: Install frontend dependencies
53+
run: pnpm -C webui install --frozen-lockfile
54+
55+
- name: Build webui
56+
run: pnpm -C webui build
57+
4258
- name: Build nyro-server
4359
run: cargo build -p nyro-server --release
4460

0 commit comments

Comments
 (0)