mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-30 02:01:35 +00:00
Try fix CI (#1261)
* Print Rust version on CI * Don't print where not appropriate * Change caching strategy * Remove win32 build * Remove win32 from list
This commit is contained in:
@ -6,7 +6,6 @@ workflows:
|
|||||||
jobs:
|
jobs:
|
||||||
- test
|
- test
|
||||||
- test-wasm
|
- test-wasm
|
||||||
- test-win32
|
|
||||||
- integration-test
|
- integration-test
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -48,9 +47,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- test-wasm-cache-{{ epoch }}
|
- test-wasm-cache-{{ epoch }}
|
||||||
- test-wasm-cache
|
- run:
|
||||||
|
name: Print Rust version
|
||||||
|
command: |
|
||||||
|
rustc --version
|
||||||
- run:
|
- run:
|
||||||
name: Build for wasm32
|
name: Build for wasm32
|
||||||
# TODO: also run tests but with --no-run; important to detect linking errors
|
# TODO: also run tests but with --no-run; important to detect linking errors
|
||||||
@ -65,25 +67,6 @@ jobs:
|
|||||||
- /usr/local/cargo
|
- /usr/local/cargo
|
||||||
- /root/.cache/sccache
|
- /root/.cache/sccache
|
||||||
|
|
||||||
test-win32:
|
|
||||||
docker:
|
|
||||||
- image: tomaka/rust-mingw-docker
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- restore_cache:
|
|
||||||
key: test-win32-cache
|
|
||||||
- run:
|
|
||||||
name: Build for Windows 64 bits
|
|
||||||
command: cargo check --target x86_64-pc-windows-gnu
|
|
||||||
- run:
|
|
||||||
name: Build for Windows 32 bits
|
|
||||||
command: cargo check --target i686-pc-windows-gnu
|
|
||||||
- save_cache:
|
|
||||||
key: test-win32-cache
|
|
||||||
paths:
|
|
||||||
- "~/.cargo"
|
|
||||||
- "./target"
|
|
||||||
|
|
||||||
integration-test:
|
integration-test:
|
||||||
docker:
|
docker:
|
||||||
- image: rust
|
- image: rust
|
||||||
@ -91,11 +74,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: integration-test-cache
|
key: integration-test-cache-{{ epoch }}
|
||||||
|
- run:
|
||||||
|
name: Print Rust version
|
||||||
|
command: |
|
||||||
|
rustc --version
|
||||||
- run:
|
- run:
|
||||||
command: cargo run --example ipfs-kad
|
command: cargo run --example ipfs-kad
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: integration-test-cache
|
key: integration-test-cache-{{ epoch }}
|
||||||
paths:
|
paths:
|
||||||
- "~/.cargo"
|
- "~/.cargo"
|
||||||
- "./target"
|
- "./target"
|
||||||
|
Reference in New Issue
Block a user