From 185952400d0ad6a04d032d94d6373a3a4b4bc50d Mon Sep 17 00:00:00 2001 From: Afshan Ahmed Khan <60838316+redoC-A2k@users.noreply.github.com> Date: Tue, 4 Jun 2024 11:12:52 +0530 Subject: [PATCH] Build edgechains and zip it in artifacts in release-wasm workflow (#374) --- .github/workflows/release-wasm.yml | 18 ++++++++++++++++++ Makefile | 5 ++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-wasm.yml b/.github/workflows/release-wasm.yml index 2259aba2..e07d3ee0 100644 --- a/.github/workflows/release-wasm.yml +++ b/.github/workflows/release-wasm.yml @@ -30,6 +30,11 @@ jobs: working-directory: . run: | make build-jsonnet + - name: Build Edgechains + working-directory: . + run: | + make build-edgechains + # start of the release job - name: Create out directory working-directory: . @@ -52,6 +57,19 @@ jobs: working-directory: . run: | cp jsonnet.zip bin/ + + - name: Zip edgechains + uses: thedoctor0/zip-release@0.7.5 + with: + type: 'zip' + filename: 'edgechains.zip' + exclusions: '*.git* /*node_modules/* .editorconfig' + path: 'JS/edgechains/arakoodev' + + - name: copy edgechains + working-directory: . + run: | + cp edgechains.zip bin/ - name: Copy Javy bin working-directory: . diff --git a/Makefile b/Makefile index 9bbf96db..3c8b7c0f 100644 --- a/Makefile +++ b/Makefile @@ -47,4 +47,7 @@ clean-example: @rm -r JS/wasm/examples/ec-wasmjs-hono/node_modules/ JS/wasm/examples/ec-wasmjs-hono/bin/ build-jsonnet: - @cd JS/jsonnet && ./build.sh \ No newline at end of file + @cd JS/jsonnet && ./build.sh + +build-edgechains: + @cp README.md JS/edgechains/arakoodev && cd JS/edgechains/arakoodev && npm install && npm run build && rm -rf src/ \ No newline at end of file