diff --git a/.github/workflows/release-wasm.yml b/.github/workflows/release-wasm.yml index 470428ec6..2259aba22 100644 --- a/.github/workflows/release-wasm.yml +++ b/.github/workflows/release-wasm.yml @@ -2,6 +2,9 @@ name: Release Wasm on: workflow_dispatch +permissions: + contents: write + jobs: build: runs-on: ubuntu-latest @@ -15,7 +18,7 @@ jobs: wasm: - 'JS/wasm/**' # start of the build job - - name: Build Javy Core + - name: Build Engine working-directory: . run: | make add all @@ -53,7 +56,7 @@ jobs: - name: Copy Javy bin working-directory: . run: | - cp target/release/javy bin/ + cp target/release/arakoo-compiler bin/ - name: Upload Release Binary uses: actions/upload-artifact@v2 @@ -84,4 +87,4 @@ jobs: files: | ./Output/* - tag_name: ${{ env.RELEASE_TAG }} + tag_name: ${{ env.RELEASE_TAG }} \ No newline at end of file diff --git a/JS/wasm/crates/serve/Cargo.toml b/JS/wasm/crates/serve/Cargo.toml index de912720b..474b2b344 100644 --- a/JS/wasm/crates/serve/Cargo.toml +++ b/JS/wasm/crates/serve/Cargo.toml @@ -15,7 +15,7 @@ anyhow = { workspace = true } serde = { workspace = true } serde_json = "1" tokio = { version = "1.21.2", features = ["full"] } -tracing = "0.1.37" +tracing = { version = "0.1.37" , features = ["log"] } hyper = { version = "0.14.26", features = ["full"] } futures = "0.3.24" tracing-subscriber = { version = "^0.3.18", features = ["env-filter", "fmt"] } diff --git a/Makefile b/Makefile index 0f7c35cd0..9bbf96db9 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ .PHONY: all -all: build-javy +all: build-cli add: @echo "Adding wasm32-wasi target" @@ -18,21 +18,21 @@ build-arakoo: @echo "Building arakoo" @cargo build -p serve -r -build-javy: build-cors +build-cli: build-engine @echo "Building javy cli" @CARGO_PROFILE_RELEASE_LTO=off cargo build -p cli -r -build-cors: build-shims - @echo "Building arakoo core" - @cargo build -p arakoo-core --target=wasm32-wasi -r --features experimental_event_loop +build-engine: build-shims + @echo "Building arakoo engine" + @cargo build -p arakoo-js-engine --target=wasm32-wasi -r build-shims: shims-install @echo "Building shims" - @cd JS/wasm/crates/apis/src/http/shims && npm run build + @cd JS/wasm/crates/arakoo-core/src/apis/http/shims && npm run build shims-install: @echo "Installing deps of shims" - @cd JS/wasm/crates/apis/src/http/shims && npm install + @cd JS/wasm/crates/arakoo-core/src/apis/http/shims && npm install compile: build-example ./target/release/javy compile JS/wasm/examples/ec-wasmjs-hono/bin/app.js