Skip to content

Commit

Permalink
Fix workflow release file (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
redoC-A2k authored May 31, 2024
1 parent 010281d commit dbe9070
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Release Wasm

on: workflow_dispatch

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -84,4 +87,4 @@ jobs:
files: |
./Output/*
tag_name: ${{ env.RELEASE_TAG }}
tag_name: ${{ env.RELEASE_TAG }}
2 changes: 1 addition & 1 deletion JS/wasm/crates/serve/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.PHONY: all
all: build-javy
all: build-cli

add:
@echo "Adding wasm32-wasi target"
Expand All @@ -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
Expand Down

0 comments on commit dbe9070

Please sign in to comment.