2019-09-18 17:12:48 -07:00
|
|
|
.PHONY: spectests emtests clean build install lint precommit docs examples
|
2018-10-23 23:54:07 +02:00
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
# Generate files
|
|
|
|
generate-spectests:
|
2019-09-22 17:46:16 -07:00
|
|
|
WASMER_RUNTIME_GENERATE_SPECTESTS=1 cargo build -p wasmer-runtime-core --release \
|
|
|
|
&& echo "formatting" \
|
|
|
|
&& cargo fmt
|
2018-10-23 23:54:07 +02:00
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
generate-emtests:
|
2019-09-22 17:46:16 -07:00
|
|
|
WASM_EMSCRIPTEN_GENERATE_EMTESTS=1 cargo build -p wasmer-emscripten-tests --release \
|
|
|
|
&& echo "formatting" \
|
|
|
|
&& cargo fmt
|
2018-12-09 19:21:28 -08:00
|
|
|
|
2019-08-09 15:40:04 +09:00
|
|
|
generate-wasitests: wasitests-setup
|
2019-07-18 17:14:01 -07:00
|
|
|
WASM_WASI_GENERATE_WASITESTS=1 cargo build -p wasmer-wasi-tests --release -vv \
|
|
|
|
&& echo "formatting" \
|
|
|
|
&& cargo fmt
|
2019-05-17 12:09:31 -07:00
|
|
|
|
2019-07-17 14:00:51 -07:00
|
|
|
spectests-generate: generate-spectests
|
|
|
|
emtests-generate: generate-emtests
|
|
|
|
wasitests-generate: generate-wasitests
|
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
generate: generate-spectests generate-emtests generate-wasitests
|
2018-10-23 23:54:07 +02:00
|
|
|
|
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
# Spectests
|
|
|
|
spectests-singlepass:
|
2019-11-13 15:06:42 +08:00
|
|
|
cargo test --manifest-path lib/spectests/Cargo.toml --release --features singlepass -- --nocapture --test-threads 1
|
2018-10-23 23:54:07 +02:00
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
spectests-cranelift:
|
2019-08-05 18:58:51 -06:00
|
|
|
cargo test --manifest-path lib/spectests/Cargo.toml --release --features clif -- --nocapture
|
2019-01-18 12:20:13 -08:00
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
spectests-llvm:
|
2019-08-05 18:58:51 -06:00
|
|
|
cargo test --manifest-path lib/spectests/Cargo.toml --release --features llvm -- --nocapture
|
2018-12-15 00:45:03 -06:00
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
spectests: spectests-singlepass spectests-cranelift spectests-llvm
|
2018-12-15 00:45:03 -06:00
|
|
|
|
2019-04-11 15:00:02 -07:00
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
# Emscripten tests
|
|
|
|
emtests-singlepass:
|
2019-07-09 12:07:05 -07:00
|
|
|
cargo test --manifest-path lib/emscripten-tests/Cargo.toml --release --features singlepass -- --test-threads=1
|
2019-07-05 18:36:34 -07:00
|
|
|
|
|
|
|
emtests-cranelift:
|
2019-07-09 12:07:05 -07:00
|
|
|
cargo test --manifest-path lib/emscripten-tests/Cargo.toml --release --features clif -- --test-threads=1
|
2019-07-05 18:36:34 -07:00
|
|
|
|
|
|
|
emtests-llvm:
|
2019-07-09 12:07:05 -07:00
|
|
|
cargo test --manifest-path lib/emscripten-tests/Cargo.toml --release --features llvm -- --test-threads=1
|
2019-07-05 18:36:34 -07:00
|
|
|
|
2019-07-09 13:21:34 -07:00
|
|
|
emtests-unit:
|
|
|
|
cargo test --manifest-path lib/emscripten/Cargo.toml --release
|
|
|
|
|
|
|
|
emtests: emtests-unit emtests-singlepass emtests-cranelift emtests-llvm
|
2019-04-11 15:00:02 -07:00
|
|
|
|
2018-11-13 10:28:50 -08:00
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
# Middleware tests
|
|
|
|
middleware-singlepass:
|
2019-08-29 11:14:57 -07:00
|
|
|
cargo test --manifest-path lib/middleware-common-tests/Cargo.toml --release --features singlepass
|
2019-03-18 01:13:04 +08:00
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
middleware-cranelift:
|
2019-08-29 11:14:57 -07:00
|
|
|
cargo test --manifest-path lib/middleware-common-tests/Cargo.toml --release --features clif
|
2019-03-06 12:44:19 -08:00
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
middleware-llvm:
|
2019-08-29 11:14:57 -07:00
|
|
|
cargo test --manifest-path lib/middleware-common-tests/Cargo.toml --release --features llvm
|
2019-04-10 17:15:47 -07:00
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
middleware: middleware-singlepass middleware-cranelift middleware-llvm
|
2019-03-18 01:13:04 +08:00
|
|
|
|
2019-05-17 12:09:31 -07:00
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
# Wasitests
|
2019-08-05 14:01:04 +09:00
|
|
|
wasitests-setup:
|
|
|
|
rm -rf lib/wasi-tests/wasitests/test_fs/temp
|
|
|
|
mkdir -p lib/wasi-tests/wasitests/test_fs/temp
|
|
|
|
|
|
|
|
wasitests-singlepass: wasitests-setup
|
2019-07-09 11:58:03 -07:00
|
|
|
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features singlepass -- --test-threads=1
|
2019-05-17 13:42:21 -07:00
|
|
|
|
2019-08-05 14:01:04 +09:00
|
|
|
wasitests-cranelift: wasitests-setup
|
2019-08-28 11:19:59 -07:00
|
|
|
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features clif -- --test-threads=1 --nocapture
|
2019-04-06 10:29:15 -07:00
|
|
|
|
2019-08-05 14:01:04 +09:00
|
|
|
wasitests-llvm: wasitests-setup
|
2019-07-09 11:58:03 -07:00
|
|
|
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features llvm -- --test-threads=1
|
2019-04-06 10:29:15 -07:00
|
|
|
|
2019-08-28 13:36:30 -07:00
|
|
|
wasitests-unit: wasitests-setup
|
2019-08-28 11:19:59 -07:00
|
|
|
cargo test --manifest-path lib/wasi-tests/Cargo.toml --release --features clif -- --test-threads=1 --nocapture
|
2019-07-09 13:21:34 -07:00
|
|
|
cargo test --manifest-path lib/wasi/Cargo.toml --release
|
|
|
|
|
|
|
|
wasitests: wasitests-unit wasitests-singlepass wasitests-cranelift wasitests-llvm
|
2019-07-05 18:36:34 -07:00
|
|
|
|
|
|
|
|
|
|
|
# Backends
|
|
|
|
singlepass: spectests-singlepass emtests-singlepass middleware-singlepass wasitests-singlepass
|
2019-07-05 18:57:30 -07:00
|
|
|
cargo test -p wasmer-singlepass-backend --release
|
2019-12-06 13:04:32 -08:00
|
|
|
cargo test --manifest-path lib/runtime-core-tests/Cargo.toml --release --no-default-features --features backend-singlepass
|
2019-07-05 18:36:34 -07:00
|
|
|
|
|
|
|
cranelift: spectests-cranelift emtests-cranelift middleware-cranelift wasitests-cranelift
|
2019-07-05 18:57:30 -07:00
|
|
|
cargo test -p wasmer-clif-backend --release
|
2019-10-30 13:28:01 +01:00
|
|
|
cargo test -p wasmer-runtime-core-tests --release
|
2019-07-05 18:36:34 -07:00
|
|
|
|
2019-08-02 18:45:21 -07:00
|
|
|
llvm: spectests-llvm emtests-llvm wasitests-llvm
|
2019-07-05 18:57:30 -07:00
|
|
|
cargo test -p wasmer-llvm-backend --release
|
2019-11-22 16:33:16 -08:00
|
|
|
cargo test -p wasmer-llvm-backend-tests --release
|
2019-12-06 13:04:32 -08:00
|
|
|
cargo test --manifest-path lib/runtime-core-tests/Cargo.toml --release --no-default-features --features backend-llvm
|
2019-07-05 18:36:34 -07:00
|
|
|
|
|
|
|
|
|
|
|
# All tests
|
2019-12-12 16:38:58 -08:00
|
|
|
capi-singlepass:
|
|
|
|
cargo build --manifest-path lib/runtime-c-api/Cargo.toml --release \
|
|
|
|
--no-default-features --features singlepass-backend,wasi
|
2019-09-01 09:42:07 -07:00
|
|
|
|
2019-12-12 16:38:58 -08:00
|
|
|
capi-cranelift:
|
|
|
|
cargo build --manifest-path lib/runtime-c-api/Cargo.toml --release \
|
|
|
|
--no-default-features --features cranelift-backend,wasi
|
|
|
|
|
|
|
|
capi-llvm:
|
|
|
|
cargo build --manifest-path lib/runtime-c-api/Cargo.toml --release \
|
|
|
|
--no-default-features --features llvm-backend,wasi
|
|
|
|
|
2019-12-16 18:06:37 -05:00
|
|
|
capi-emscripten:
|
|
|
|
cargo build --manifest-path lib/runtime-c-api/Cargo.toml --release \
|
|
|
|
--no-default-features --features singlepass-backend,emscripten
|
|
|
|
|
2019-12-12 16:38:58 -08:00
|
|
|
# We use cranelift as the default backend for the capi for now
|
|
|
|
capi: capi-cranelift
|
2019-09-01 09:42:07 -07:00
|
|
|
|
2019-12-12 16:38:58 -08:00
|
|
|
test-capi-singlepass: capi-singlepass
|
|
|
|
cargo test --manifest-path lib/runtime-c-api/Cargo.toml --release \
|
|
|
|
--no-default-features --features singlepass-backend,wasi
|
|
|
|
|
|
|
|
test-capi-cranelift: capi-cranelift
|
|
|
|
cargo test --manifest-path lib/runtime-c-api/Cargo.toml --release \
|
|
|
|
--no-default-features --features cranelift-backend,wasi
|
|
|
|
|
|
|
|
test-capi-llvm: capi-llvm
|
|
|
|
cargo test --manifest-path lib/runtime-c-api/Cargo.toml --release \
|
|
|
|
--no-default-features --features llvm-backend,wasi
|
|
|
|
|
2019-12-16 18:06:37 -05:00
|
|
|
test-capi-emscripten: capi-emscripten
|
|
|
|
cargo test --manifest-path lib/runtime-c-api/Cargo.toml --release \
|
|
|
|
--no-default-features --features singlepass-backend,emscripten
|
|
|
|
|
2019-12-16 18:07:07 -05:00
|
|
|
test-capi: test-capi-singlepass test-capi-cranelift test-capi-llvm test-capi-emscripten
|
2019-07-05 19:55:03 -07:00
|
|
|
|
2019-10-25 14:24:22 -07:00
|
|
|
capi-test: test-capi
|
2019-07-05 19:55:03 -07:00
|
|
|
|
2019-09-01 09:42:07 -07:00
|
|
|
test-rest:
|
2019-10-30 13:28:01 +01:00
|
|
|
cargo test --release \
|
|
|
|
--all \
|
|
|
|
--exclude wasmer-runtime-c-api \
|
|
|
|
--exclude wasmer-emscripten \
|
|
|
|
--exclude wasmer-spectests \
|
|
|
|
--exclude wasmer-wasi \
|
|
|
|
--exclude wasmer-middleware-common \
|
|
|
|
--exclude wasmer-middleware-common-tests \
|
|
|
|
--exclude wasmer-singlepass-backend \
|
|
|
|
--exclude wasmer-clif-backend \
|
|
|
|
--exclude wasmer-llvm-backend \
|
|
|
|
--exclude wasmer-wasi-tests \
|
|
|
|
--exclude wasmer-emscripten-tests \
|
|
|
|
--exclude wasmer-runtime-core-tests
|
2019-07-05 18:36:34 -07:00
|
|
|
|
|
|
|
|
2019-12-19 16:32:28 -05:00
|
|
|
test: spectests emtests middleware wasitests circleci-clean test-rest examples
|
2019-07-05 18:36:34 -07:00
|
|
|
|
|
|
|
|
|
|
|
# Integration tests
|
2019-09-18 17:12:48 -07:00
|
|
|
integration-tests: release-clif examples
|
2019-07-05 18:36:34 -07:00
|
|
|
echo "Running Integration Tests"
|
|
|
|
./integration_tests/lua/test.sh
|
|
|
|
./integration_tests/nginx/test.sh
|
|
|
|
./integration_tests/cowsay/test.sh
|
|
|
|
|
2019-09-18 17:12:48 -07:00
|
|
|
examples:
|
|
|
|
cargo run --example plugin
|
|
|
|
cargo run --example callback
|
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
|
|
|
|
# Utils
|
|
|
|
lint:
|
2019-07-05 18:57:30 -07:00
|
|
|
cargo fmt --all -- --check
|
2019-07-05 18:36:34 -07:00
|
|
|
|
|
|
|
precommit: lint test
|
|
|
|
|
2019-07-06 22:05:45 -07:00
|
|
|
debug:
|
2019-11-21 23:31:10 +08:00
|
|
|
cargo build --release --features backend-cranelift,backend-singlepass,debug,trace
|
2019-07-05 18:36:34 -07:00
|
|
|
|
|
|
|
install:
|
2019-07-05 19:55:03 -07:00
|
|
|
cargo install --path .
|
2019-04-06 10:29:15 -07:00
|
|
|
|
2019-08-10 11:11:54 -07:00
|
|
|
# Checks
|
|
|
|
check-bench-singlepass:
|
2019-10-21 15:15:11 -07:00
|
|
|
cargo check --benches --all --no-default-features --features "backend-singlepass" \
|
2019-09-23 16:33:29 -07:00
|
|
|
--exclude wasmer-clif-backend --exclude wasmer-llvm-backend --exclude wasmer-kernel-loader
|
2019-08-10 11:11:54 -07:00
|
|
|
check-bench-clif:
|
2019-10-21 15:15:11 -07:00
|
|
|
cargo check --benches --all --no-default-features --features "backend-cranelift" \
|
2019-09-23 16:33:29 -07:00
|
|
|
--exclude wasmer-singlepass-backend --exclude wasmer-llvm-backend --exclude wasmer-kernel-loader \
|
|
|
|
--exclude wasmer-middleware-common-tests
|
2019-08-10 11:11:54 -07:00
|
|
|
check-bench-llvm:
|
2019-10-21 15:15:11 -07:00
|
|
|
cargo check --benches --all --no-default-features --features "backend-llvm" \
|
2019-09-23 16:33:29 -07:00
|
|
|
--exclude wasmer-singlepass-backend --exclude wasmer-clif-backend --exclude wasmer-kernel-loader
|
2019-08-10 11:11:54 -07:00
|
|
|
|
|
|
|
check-bench: check-bench-singlepass check-bench-llvm
|
|
|
|
|
2019-10-21 15:15:11 -07:00
|
|
|
# TODO: We wanted `--workspace --exclude wasmer-runtime`, but can't due
|
|
|
|
# to https://github.com/rust-lang/cargo/issues/6745 .
|
|
|
|
NOT_RUNTIME_CRATES = -p wasmer-clif-backend -p wasmer-singlepass-backend -p wasmer-middleware-common -p wasmer-runtime-core -p wasmer-emscripten -p wasmer-llvm-backend -p wasmer-wasi -p wasmer-kernel-loader -p wasmer-dev-utils -p wasmer-wasi-tests -p wasmer-middleware-common-tests -p wasmer-emscripten-tests
|
|
|
|
RUNTIME_CHECK = cargo check --manifest-path lib/runtime/Cargo.toml --no-default-features
|
2019-08-10 11:11:54 -07:00
|
|
|
check: check-bench
|
2019-10-21 15:15:11 -07:00
|
|
|
cargo check $(NOT_RUNTIME_CRATES)
|
|
|
|
cargo check --release $(NOT_RUNTIME_CRATES)
|
|
|
|
cargo check --all-features $(NOT_RUNTIME_CRATES)
|
|
|
|
cargo check --release --all-features $(NOT_RUNTIME_CRATES)
|
2019-10-17 15:37:35 -07:00
|
|
|
# wasmer-runtime doesn't work with all backends enabled at once.
|
|
|
|
#
|
|
|
|
# We test using manifest-path directly so as to disable the default.
|
|
|
|
# `--no-default-features` only disables the default features in the
|
|
|
|
# current package, not the package specified by `-p`. This is
|
|
|
|
# intentional.
|
|
|
|
#
|
|
|
|
# Test default features, test 'debug' feature only in non-release
|
|
|
|
# builds, test as many combined features as possible with each backend
|
|
|
|
# as default, and test a minimal set of features with only one backend
|
|
|
|
# at a time.
|
|
|
|
cargo check --manifest-path lib/runtime/Cargo.toml
|
2020-01-07 16:10:36 +01:00
|
|
|
# Check some of the cases where deterministic execution could matter
|
|
|
|
cargo check --manifest-path lib/runtime/Cargo.toml --features "deterministic-execution"
|
|
|
|
cargo check --manifest-path lib/runtime/Cargo.toml --no-default-features \
|
|
|
|
--features=default-backend-singlepass,deterministic-execution
|
|
|
|
cargo check --manifest-path lib/runtime/Cargo.toml --no-default-features \
|
|
|
|
--features=default-backend-llvm,deterministic-execution
|
|
|
|
cargo check --release --manifest-path lib/runtime/Cargo.toml
|
2019-10-21 15:15:11 -07:00
|
|
|
|
|
|
|
$(RUNTIME_CHECK) \
|
2020-01-07 16:10:36 +01:00
|
|
|
--features=cranelift,cache,debug,llvm,singlepass,default-backend-singlepass
|
|
|
|
$(RUNTIME_CHECK) --release \
|
|
|
|
--features=cranelift,cache,llvm,singlepass,default-backend-singlepass
|
|
|
|
$(RUNTIME_CHECK) \
|
|
|
|
--features=cranelift,cache,debug,llvm,singlepass,default-backend-cranelift
|
|
|
|
$(RUNTIME_CHECK) --release \
|
|
|
|
--features=cranelift,cache,llvm,singlepass,default-backend-cranelift
|
|
|
|
$(RUNTIME_CHECK) \
|
|
|
|
--features=cranelift,cache,debug,llvm,singlepass,default-backend-llvm
|
|
|
|
$(RUNTIME_CHECK) --release \
|
|
|
|
--features=cranelift,cache,llvm,singlepass,default-backend-llvm
|
|
|
|
$(RUNTIME_CHECK) \
|
|
|
|
--features=singlepass,default-backend-singlepass,debug
|
|
|
|
$(RUNTIME_CHECK) --release \
|
|
|
|
--features=singlepass,default-backend-singlepass
|
|
|
|
$(RUNTIME_CHECK) \
|
|
|
|
--features=cranelift,default-backend-cranelift,debug
|
|
|
|
$(RUNTIME_CHECK) --release \
|
|
|
|
--features=cranelift,default-backend-cranelift
|
|
|
|
$(RUNTIME_CHECK) \
|
|
|
|
--features=llvm,default-backend-llvm,debug
|
|
|
|
$(RUNTIME_CHECK) --release \
|
|
|
|
--features=llvm,default-backend-llvm
|
2019-12-20 23:26:43 -08:00
|
|
|
--features=default-backend-singlepass,singlepass,cranelift,llvm,cache,debug,deterministic-execution
|
2019-07-12 22:18:09 -05:00
|
|
|
|
2019-08-10 11:11:54 -07:00
|
|
|
# Release
|
2018-11-13 10:28:50 -08:00
|
|
|
release:
|
2019-12-18 16:31:40 -05:00
|
|
|
cargo build --release --features backend-singlepass,backend-cranelift,backend-llvm,loader-kernel,experimental-io-devices
|
2019-07-05 18:36:34 -07:00
|
|
|
|
|
|
|
# Only one backend (cranelift)
|
2019-07-31 21:11:29 -07:00
|
|
|
release-clif:
|
2019-09-30 22:50:04 -07:00
|
|
|
# If you are on macOS, you will need mingw-w64 for cross compiling to Windows
|
2018-11-13 10:28:50 -08:00
|
|
|
# brew install mingw-w64
|
2019-11-21 23:31:10 +08:00
|
|
|
cargo build --release --features backend-cranelift
|
2019-07-08 11:30:04 -07:00
|
|
|
|
|
|
|
release-singlepass:
|
2019-07-09 17:57:31 -07:00
|
|
|
cargo build --release --features backend-singlepass
|
2019-07-05 18:36:34 -07:00
|
|
|
|
2019-07-08 11:30:04 -07:00
|
|
|
release-llvm:
|
2019-12-18 16:31:40 -05:00
|
|
|
cargo build --release --features backend-llvm,experimental-io-devices
|
2019-07-08 11:30:04 -07:00
|
|
|
|
2019-07-30 15:59:21 +09:00
|
|
|
bench-singlepass:
|
2019-09-23 16:33:29 -07:00
|
|
|
cargo bench --all --no-default-features --features "backend-singlepass" \
|
|
|
|
--exclude wasmer-clif-backend --exclude wasmer-llvm-backend --exclude wasmer-kernel-loader
|
2019-07-30 15:59:21 +09:00
|
|
|
bench-clif:
|
2019-09-23 16:33:29 -07:00
|
|
|
cargo bench --all --no-default-features --features "backend-cranelift" \
|
|
|
|
--exclude wasmer-singlepass-backend --exclude wasmer-llvm-backend --exclude wasmer-kernel-loader \
|
|
|
|
--exclude wasmer-middleware-common-tests
|
2019-07-30 15:59:21 +09:00
|
|
|
bench-llvm:
|
2019-09-23 16:33:29 -07:00
|
|
|
cargo bench --all --no-default-features --features "backend-llvm" \
|
|
|
|
--exclude wasmer-singlepass-backend --exclude wasmer-clif-backend --exclude wasmer-kernel-loader
|
2018-11-13 10:28:50 -08:00
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
# Build utils
|
|
|
|
build-install:
|
|
|
|
mkdir -p ./install/bin
|
|
|
|
cp ./wapm-cli/target/release/wapm ./install/bin/
|
|
|
|
cp ./target/release/wasmer ./install/bin/
|
|
|
|
tar -C ./install -zcvf wasmer.tar.gz bin/wapm bin/wasmer
|
2018-11-26 11:47:33 -08:00
|
|
|
|
2019-07-05 18:36:34 -07:00
|
|
|
# For installing the contents locally
|
|
|
|
do-install:
|
|
|
|
tar -C ~/.wasmer -zxvf wasmer.tar.gz
|
2019-05-05 12:17:10 -07:00
|
|
|
|
2018-11-13 10:28:50 -08:00
|
|
|
publish-release:
|
|
|
|
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/
|
2019-06-17 13:25:20 -07:00
|
|
|
|
|
|
|
# cargo install cargo-deps
|
|
|
|
# must install graphviz for `dot`
|
|
|
|
dep-graph:
|
2019-08-29 11:14:57 -07:00
|
|
|
cargo deps --optional-deps --filter wasmer-wasi wasmer-wasi-tests wasmer-kernel-loader wasmer-dev-utils wasmer-llvm-backend wasmer-emscripten wasmer-emscripten-tests wasmer-runtime-core wasmer-runtime wasmer-middleware-common wasmer-middleware-common-tests wasmer-singlepass-backend wasmer-clif-backend wasmer --manifest-path Cargo.toml | dot -Tpng > wasmer_depgraph.png
|
2019-09-03 16:12:30 -07:00
|
|
|
|
|
|
|
docs:
|
2020-01-15 12:32:27 +01:00
|
|
|
cargo doc --features=backend-singlepass,backend-cranelift,backend-llvm,docs,wasi,managed --all --no-deps
|
|
|
|
cd lib/runtime-c-api/ && doxygen doxyfile && cd ..
|
2020-01-14 19:32:00 +01:00
|
|
|
mkdir -p api-docs
|
2020-01-15 11:04:00 +01:00
|
|
|
mkdir -p api-docs/c
|
2020-01-15 12:32:27 +01:00
|
|
|
cp -R target/doc api-docs/rust
|
|
|
|
cp -R lib/runtime-c-api/doc/html api-docs/c/runtime-c-api
|
|
|
|
echo '<!-- Build $(SOURCE_VERSION) --><meta http-equiv="refresh" content="0; url=rust/wasmer_runtime/index.html">' > api-docs/index.html
|
|
|
|
echo '<!-- Build $(SOURCE_VERSION) --><meta http-equiv="refresh" content="0; url=wasmer_runtime/index.html">' > api-docs/rust/index.html
|
2020-01-14 13:35:06 +01:00
|
|
|
|
|
|
|
docs-publish:
|
2020-01-15 11:01:22 +01:00
|
|
|
git clone -b "gh-pages" --depth=1 https://wasmerbot:$(GITHUB_DOCS_TOKEN)@github.com/wasmerio/wasmer.git api-docs-repo
|
2020-01-14 19:32:00 +01:00
|
|
|
cp -R api-docs/* api-docs-repo/
|
2020-01-14 18:58:02 +01:00
|
|
|
cd api-docs-repo && git add index.html rust/* c/*
|
2020-01-14 19:32:00 +01:00
|
|
|
cd api-docs-repo && git commit -m "Publishing GitHub Pages ***CI***"
|
|
|
|
cd api-docs-repo && git push origin gh-pages
|
2020-01-14 12:10:10 +01:00
|
|
|
|
2019-11-20 19:13:59 -08:00
|
|
|
wapm:
|
|
|
|
cargo build --release --manifest-path wapm-cli/Cargo.toml --features "telemetry update-notifications"
|