From 236ef0344b39d0c410343aa692ea9c80c8d85b41 Mon Sep 17 00:00:00 2001 From: Rahul Yadav <67467792+rahul007-bit@users.noreply.github.com> Date: Fri, 1 Mar 2024 00:34:49 +0530 Subject: [PATCH 1/4] Update webassembly-pr-build.yml (#316) --- .github/workflows/webassembly-pr-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/webassembly-pr-build.yml b/.github/workflows/webassembly-pr-build.yml index a8c86145e..1352b52d9 100644 --- a/.github/workflows/webassembly-pr-build.yml +++ b/.github/workflows/webassembly-pr-build.yml @@ -83,4 +83,4 @@ jobs: - name: Upload to GitHub Releases uses: actions/upload-rust-binary-action@v1 with: - bin: your_binary_name \ No newline at end of file + bin: arakoo From 120490dba80481752c022e73d4f2e1a3948c04f0 Mon Sep 17 00:00:00 2001 From: Rahul Yadav <67467792+rahul007-bit@users.noreply.github.com> Date: Fri, 1 Mar 2024 09:25:58 +0530 Subject: [PATCH 2/4] Fix wasm workflow (#318) * Update webassembly-pr-build.yml * Update webassembly-pr-build.yml * fix webassembly-pr-build.yml --- .github/workflows/webassembly-pr-build.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/webassembly-pr-build.yml b/.github/workflows/webassembly-pr-build.yml index 1352b52d9..84c5be6db 100644 --- a/.github/workflows/webassembly-pr-build.yml +++ b/.github/workflows/webassembly-pr-build.yml @@ -80,7 +80,16 @@ jobs: - name: Build Release Binary run: cargo build --release - - name: Upload to GitHub Releases - uses: actions/upload-rust-binary-action@v1 + - name: Create out directory + working-directory: . + run: | + mkdir bin/ + - name: Copy arakoo bin + working-directory: . + run: | + cp target/release/arakoo bin/ + - name: Upload Release Binary + uses: actions/upload-artifact@v2 with: - bin: arakoo + name: arakoo + path: bin From 279ea8436da301405c061232dd5759ea8a85f6e9 Mon Sep 17 00:00:00 2001 From: Rahul Yadav <67467792+rahul007-bit@users.noreply.github.com> Date: Fri, 1 Mar 2024 09:27:38 +0530 Subject: [PATCH 3/4] Update build.sh --- JS/wasm/types/jsonnet/build.sh | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/JS/wasm/types/jsonnet/build.sh b/JS/wasm/types/jsonnet/build.sh index 9990988f5..0b23de7ec 100755 --- a/JS/wasm/types/jsonnet/build.sh +++ b/JS/wasm/types/jsonnet/build.sh @@ -31,21 +31,6 @@ CARGO_PROFILE_RELEASE_OPT_LEVEL="z" wasm-pack build "--$WASM_BUILD_PROFILE" --ta mv "pkg/" $OUT_FOLDER -WASM_OPT_ARGS=( - "-Os" # execute size-focused optimization passes - "--vacuum" # removes obviously unneeded code - "--duplicate-function-elimination" # removes duplicate functions - "--duplicate-import-elimination" # removes duplicate imports - "--remove-unused-module-elements" # removes unused module elements - "--dae-optimizing" # removes arguments to calls in an lto-like manner - "--remove-unused-names" # removes names from location that are never branched to - "--rse" # removes redundant local.sets - "--gsi" # global struct inference, to optimize constant values - "--gufa-optimizing" # optimize the entire program using type monomorphization - "--strip-dwarf" # removes DWARF debug information - "--strip-producers" # removes the "producers" section - "--strip-target-features" # removes the "target_features" section -) sleep 1 enable_cf_in_bindings() { From a392bc3f5fcc9e496ab54ac0c034608234d9d15e Mon Sep 17 00:00:00 2001 From: Rahul Yadav <67467792+rahul007-bit@users.noreply.github.com> Date: Fri, 1 Mar 2024 10:15:31 +0530 Subject: [PATCH 4/4] Update webassembly-pr-build.yml (#319) --- .github/workflows/webassembly-pr-build.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/webassembly-pr-build.yml b/.github/workflows/webassembly-pr-build.yml index 84c5be6db..65b66db31 100644 --- a/.github/workflows/webassembly-pr-build.yml +++ b/.github/workflows/webassembly-pr-build.yml @@ -65,7 +65,6 @@ jobs: echo "cache-hit=$(test -d ./target && echo true || echo false)" >> $GITHUB_OUTPUT - name: Build Javy Core - if: working-directory: . run: | make add build-cors @@ -77,8 +76,6 @@ jobs: working-directory: . run: | make build-jsonnet - - name: Build Release Binary - run: cargo build --release - name: Create out directory working-directory: .