Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Build WASM binaries as part of cargo build #2868

Merged
merged 60 commits into from
Jul 4, 2019
Merged
Show file tree
Hide file tree
Changes from 48 commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
1ed68f2
Introduce `wasm-builder` and `wasm-builder-runner` to retire `build.sh`
bkchr Jun 13, 2019
96b1fb6
Add build script and remove the wasm project
bkchr Jun 13, 2019
47dd047
Port `node-runtime` to new wasm-builder
bkchr Jun 14, 2019
468bbee
Make `substrate-executor` tests work with `wasm-builder`
bkchr Jun 14, 2019
3e6108f
Move `node-template` to `wasm-builder`
bkchr Jun 14, 2019
cdd2619
Remove `build.sh` :)
bkchr Jun 14, 2019
fb80a34
Remove the last include_bytes
bkchr Jun 14, 2019
8a61c2f
Adds the missing build.rs files
bkchr Jun 14, 2019
f4ceedc
Remove `build.sh` from CI
bkchr Jun 14, 2019
c9e4094
Debug CI
bkchr Jun 14, 2019
4269b6f
Make it work in CI
bkchr Jun 14, 2019
98c3dad
CI attempt 3
bkchr Jun 14, 2019
3140240
Make `substrate-runtime-test` compile on stable
bkchr Jun 14, 2019
ee690d4
Ahhh, some missed `include_bytes!`
bkchr Jun 14, 2019
cd62ba8
AHH
bkchr Jun 14, 2019
4daabf1
Add suggestions
bkchr Jun 17, 2019
1b334b2
Improve search for `Cargo.lock` and don't panic if it is not found
bkchr Jun 17, 2019
22273d8
Merge branch 'master' into bkchr-wasm-builder
bkchr Jun 17, 2019
30960db
Searching from manifest path was no good idea
bkchr Jun 17, 2019
b54231d
Make the `wasm-builder` source better configurable
bkchr Jun 17, 2019
d522b5c
Merge remote-tracking branch 'origin/master' into bkchr-wasm-builder
bkchr Jun 26, 2019
320ce2d
Expose the bloaty wasm binary as well
bkchr Jun 26, 2019
3a8c627
Make sure to rerun WASM recompilation on changes in dependencies
bkchr Jun 26, 2019
5e17414
Introduce new `WASM_BUILD_TYPE` env and make sure to call `build.rs` on
bkchr Jun 26, 2019
54e07da
Remove `build.sh` from READMEs
bkchr Jun 26, 2019
416e5e5
Rename the projects
bkchr Jun 26, 2019
2ffc83a
Fixes CI
bkchr Jun 26, 2019
cef2a99
Merge remote-tracking branch 'origin/master' into bkchr-wasm-builder
bkchr Jun 26, 2019
5dfd5d6
Update lock file
bkchr Jun 26, 2019
04aca22
Fixes merge-conflict
bkchr Jun 26, 2019
ed434f5
Apply suggestions from code review
bkchr Jun 26, 2019
420f5d9
Try to make windows happy
bkchr Jun 27, 2019
c6a4dbb
Replace all back slashes in paths with slashes
bkchr Jun 29, 2019
a2e471e
Apply suggestions from code review
bkchr Jun 29, 2019
434ee08
Use cargo from `CARGO` env variable
bkchr Jun 29, 2019
1dd2803
Merge remote-tracking branch 'origin/master' into bkchr-wasm-builder
bkchr Jun 29, 2019
fd2da24
Fix compilation
bkchr Jun 30, 2019
f0c2746
Use `rustup` for running the nightly build
bkchr Jul 1, 2019
c150290
Make individual projects skipable
bkchr Jul 1, 2019
58db3fc
Fix compilation
bkchr Jul 1, 2019
3bb8192
Merge remote-tracking branch 'origin/master' into bkchr-wasm-builder
bkchr Jul 2, 2019
8143a18
Fixes compilation
bkchr Jul 2, 2019
3cd7239
Build all WASM projects in one workspace
bkchr Jul 3, 2019
a83e575
Replace more back slashes!
bkchr Jul 3, 2019
6343b8e
Remove `inlcude_bytes!`
bkchr Jul 3, 2019
efb977b
Adds some documentation
bkchr Jul 3, 2019
e34b0fc
Apply suggestions from code review
bkchr Jul 4, 2019
36e6d97
Apply suggestions from code review
bkchr Jul 4, 2019
c5804bb
More review comments
bkchr Jul 4, 2019
4d22d0e
Merge remote-tracking branch 'origin/master' into bkchr-wasm-builder
bkchr Jul 4, 2019
3007382
Update `Cargo.lock`
bkchr Jul 4, 2019
51660ab
Set license
bkchr Jul 4, 2019
c7674da
Apply suggestions from code review
bkchr Jul 4, 2019
c2f5580
Merge branch 'bkchr-wasm-builder' of github.com:paritytech/substrate …
bkchr Jul 4, 2019
ca8ff6f
More review comments + adds `TRIGGER_WASM_BUILD` env
bkchr Jul 4, 2019
b38fe79
Fix doc tests
bkchr Jul 4, 2019
b4c7b54
Increase version + update README
bkchr Jul 4, 2019
4427ebe
Switch crates.io version of `wasm-builder`
bkchr Jul 4, 2019
61b5c7a
Update README
bkchr Jul 4, 2019
890d420
Switch to released version of `wasm-builder-runner`
bkchr Jul 4, 2019
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: 2 additions & 7 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ cargo-check-benches:
stage: test
<<: *docker-env
script:
- ./scripts/build.sh --locked
- time cargo check --benches
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --benches
- sccache -s


Expand All @@ -107,7 +106,7 @@ cargo-check-subkey:
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
script:
- cd ./subkey
- time cargo check --release # makes sense to save artifacts for building it
- BUILD_DUMMY_WASM_BINARY=1 time cargo check --release # makes sense to save artifacts for building it
- sccache -s


Expand All @@ -122,7 +121,6 @@ test-linux-stable: &test-linux
variables:
- $DEPLOY_TAG
script:
- ./scripts/build.sh --locked
- time cargo test --all --release --verbose --locked
- sccache -s

Expand Down Expand Up @@ -160,7 +158,6 @@ test-linux-stable-int:
variables:
- $DEPLOY_TAG
script:
- ./scripts/build.sh --locked
- time RUST_LOG=sync=trace,consensus=trace,client=trace,state-db=trace,db=trace,forks=trace,state_db=trace,storage_cache=trace
cargo test -p node-cli --release --verbose --locked -- --ignored --test-threads=1
- sccache -s
Expand Down Expand Up @@ -215,7 +212,6 @@ build-linux-release:
variables:
- $DEPLOY_TAG
script:
- ./scripts/build.sh --locked
- time cargo build --release --verbose
- mkdir -p ./artifacts
- mv ./target/release/substrate ./artifacts/.
Expand Down Expand Up @@ -245,7 +241,6 @@ build-rust-doc-release:
- ./crate-docs
<<: *build-only
script:
- ./scripts/build.sh --locked
- rm -f ./crate-docs/index.html # use it as an indicator if the job succeeds
- time cargo +nightly doc --release --all --verbose
- cp -R ./target/doc ./crate-docs
Expand Down
Loading