Skip to content

Commit

Permalink
Continue fixing release process
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslittle230 committed Jan 22, 2023
1 parent 30a23ff commit 3c40448
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Expand Up @@ -17,6 +17,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ github.ref }}
name: ${{ github.ref }}
draft: true
prerelease: false
skipIfReleaseExists: true
Expand Down
9 changes: 6 additions & 3 deletions justfile
Expand Up @@ -24,17 +24,20 @@ build-rust-release:
# Build and compress the WASM blob
build-wasm-release:
cd stork-wasm; wasm-pack --quiet build --target web --out-name stork --release

cd stork-wasm/pkg; mv stork_bg.wasm stork_bg_unopt.wasm
wasm-opt -Os -o stork-wasm/pkg/stork_bg_uncomp.wasm stork-wasm/pkg/stork_bg_unopt.wasm
# gzip -c stork-wasm/pkg/stork_bg_uncomp.wasm > stork-wasm/pkg/stork_bg.wasm
cp stork-wasm/pkg/stork_bg_uncomp.wasm js/dist/stork.wasm
gzip -c stork-wasm/pkg/stork_bg_uncomp.wasm > stork-wasm/pkg/stork_bg.wasm

-@stat -f 'stork-uncomp.wasm: %z bytes' stork-wasm/pkg/stork_bg_uncomp.wasm
-@stat -f 'stork.wasm: %z bytes' stork-wasm/pkg/stork_bg.wasm

mkdir -p js/dist
cp stork-wasm/pkg/stork_bg_uncomp.wasm js/dist/stork.wasm # TODO: Eventually use the compressed one

# Build the JS components of the project
build-js-release: _yarn
node build.js
-@stat -f 'stork.js: %z bytes' js/dist/stork.js

######################################
## Build for development
Expand Down

0 comments on commit 3c40448

Please sign in to comment.