mirror of
https://github.com/openai/codex.git
synced 2026-11-30 00:10:49 +00:00
feat: add codex wasm harness prototype
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
crate_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
workspace_dir="$(cd "$crate_dir/.." && pwd)"
|
||||
|
||||
cd "$workspace_dir"
|
||||
|
||||
cargo build \
|
||||
-p codex-wasm-harness \
|
||||
--target wasm32-unknown-unknown
|
||||
|
||||
wasm-bindgen \
|
||||
--target web \
|
||||
--out-dir "$crate_dir/examples/pkg" \
|
||||
"$workspace_dir/target/wasm32-unknown-unknown/debug/codex_wasm_harness.wasm"
|
||||
Reference in New Issue
Block a user