Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix workflow release file #367

Merged
merged 1 commit into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/release-wasm.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion JS/wasm/crates/serve/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"] }
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"
@@ -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
Loading