Skip to content

Commit 35ccbf2

Browse files
author
ndthanhdev
committed
chore: update toolchain to system in tag-trunk.yml and add cargo-binstall installation in workflow_runtime.go
1 parent cdd6667 commit 35ccbf2

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.moon/tasks/tag-trunk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ tasks:
1414
preset: server
1515
trunk-build:
1616
script: env -u NO_COLOR trunk build
17-
toolchain: rust
17+
toolchain: system
1818
inputs:
1919
- "@group(sources)"
2020
- "@group(trunk-config)"

etc/workflow-runtime/src/workflow_runtime.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ func (m *WorkflowRuntime) BuildEnv(ctx context.Context) *WorkflowRuntime {
4242
WithFile("/workspace/.prototools", m.Dir.File(".prototools")).
4343
// proto use
4444
WithExec([]string{"proto", "use"}).
45+
// Install cargo-binstall (fast prebuilt installer for cargo bins)
46+
WithExec([]string{"bash", "-l", "-c", "curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash"}).
47+
// Install trunk and wasm-bindgen-cli via cargo-binstall (matches .moon/toolchains.yml)
48+
WithExec([]string{"bash", "-l", "-c", "cargo binstall --no-confirm --locked trunk@0.21.14 wasm-bindgen-cli@0.2.118"}).
4549
WithMountedDirectory("/workspace", source).
4650
WithMountedDirectory("/workspace/.git", m.Dir.Directory(".git")).
4751
// moon setup

0 commit comments

Comments
 (0)