加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
language: rust
cache: cargo
rust:
- nightly
env:
matrix:
- SCRIPT="./check.sh"
- SCRIPT="./build.sh"
- SCRIPT="./test.sh"
before_script:
- rustup target add wasm32-unknown-unknown
- rustup target add i686-pc-windows-gnu
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/cargo-readme || cargo install --vers "^3" cargo-readme)
- (test -x $HOME/.cargo/bin/wasm-gc || cargo install --vers "^0.1.6" wasm-gc)
- cargo install-update -a
script:
- "$SCRIPT"
matrix:
include:
- name: "Windows Builds"
rust: stable
before_script:
- rustup target add i686-pc-windows-gnu
script:
- cd ./wee_alloc
- cargo check --release --no-default-features
- cargo check --release
- cargo check --release --no-default-features --target i686-pc-windows-gnu
- cargo check --release --target i686-pc-windows-gnu
- name: "Stable Wasm Builds"
rust: stable
before_script:
- rustup target add wasm32-unknown-unknown
script:
- cargo check -p wee_alloc --target wasm32-unknown-unknown
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化