You've already forked SpaghettiKart
mirror of
https://github.com/izzy2lost/SpaghettiKart.git
synced 2026-03-26 16:57:37 -07:00
9cf1f9e1d7
* start add wasm integration * some test * some improvement * try more language * expend try with python * update * half working python * improve and extend test * get py2wasm work but not so well * convert to use in cpp * start prepare multimodule * improve a little by using cpp (but still not great) * Update wasm.cpp * try ocaml * add a working example of python with a not complete function * remove type to be even more curse * start add a proper mod loader * allow mod to communicate between * example of hook --------- Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
70 lines
2.9 KiB
YAML
70 lines
2.9 KiB
YAML
language: rust
|
|
sudo: false
|
|
|
|
cache: cargo
|
|
|
|
matrix:
|
|
include:
|
|
|
|
# Builds with wasm-pack.
|
|
- rust: beta
|
|
env: RUST_BACKTRACE=1
|
|
addons:
|
|
firefox: latest
|
|
chrome: stable
|
|
before_script:
|
|
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
|
|
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
|
|
- cargo install-update -a
|
|
- curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -f
|
|
script:
|
|
- cargo generate --git . --name testing
|
|
# Having a broken Cargo.toml (in that it has curlies in fields) anywhere
|
|
# in any of our parent dirs is problematic.
|
|
- mv Cargo.toml Cargo.toml.tmpl
|
|
- cd testing
|
|
- wasm-pack build
|
|
- wasm-pack test --chrome --firefox --headless
|
|
|
|
# Builds on nightly.
|
|
- rust: nightly
|
|
env: RUST_BACKTRACE=1
|
|
before_script:
|
|
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
|
|
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
|
|
- cargo install-update -a
|
|
- rustup target add wasm32-unknown-unknown
|
|
script:
|
|
- cargo generate --git . --name testing
|
|
- mv Cargo.toml Cargo.toml.tmpl
|
|
- cd testing
|
|
- cargo check
|
|
- cargo check --target wasm32-unknown-unknown
|
|
- cargo check --no-default-features
|
|
- cargo check --target wasm32-unknown-unknown --no-default-features
|
|
- cargo check --no-default-features --features console_error_panic_hook
|
|
- cargo check --target wasm32-unknown-unknown --no-default-features --features console_error_panic_hook
|
|
- cargo check --no-default-features --features "console_error_panic_hook wee_alloc"
|
|
- cargo check --target wasm32-unknown-unknown --no-default-features --features "console_error_panic_hook wee_alloc"
|
|
|
|
# Builds on beta.
|
|
- rust: beta
|
|
env: RUST_BACKTRACE=1
|
|
before_script:
|
|
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
|
|
- (test -x $HOME/.cargo/bin/cargo-generate || cargo install --vers "^0.2" cargo-generate)
|
|
- cargo install-update -a
|
|
- rustup target add wasm32-unknown-unknown
|
|
script:
|
|
- cargo generate --git . --name testing
|
|
- mv Cargo.toml Cargo.toml.tmpl
|
|
- cd testing
|
|
- cargo check
|
|
- cargo check --target wasm32-unknown-unknown
|
|
- cargo check --no-default-features
|
|
- cargo check --target wasm32-unknown-unknown --no-default-features
|
|
- cargo check --no-default-features --features console_error_panic_hook
|
|
- cargo check --target wasm32-unknown-unknown --no-default-features --features console_error_panic_hook
|
|
# Note: no enabling the `wee_alloc` feature here because it requires
|
|
# nightly for now.
|