Skip to content

Commit

Permalink
Build edgechains and zip it in artifacts in release-wasm workflow (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
redoC-A2k authored Jun 4, 2024
1 parent fe1f91b commit 1859524
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/release-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: .
Expand All @@ -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: .
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
@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/

0 comments on commit 1859524

Please sign in to comment.