mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
ci: caching for CI (#4108)
This commit is contained in:
@@ -46,6 +46,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: rustup update stable
|
run: rustup update stable
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: Install cargo-hack
|
- name: Install cargo-hack
|
||||||
run: cargo install cargo-hack
|
run: cargo install cargo-hack
|
||||||
|
|
||||||
@@ -83,6 +84,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: rustup update stable
|
run: rustup update stable
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
|
||||||
- name: Install Valgrind
|
- name: Install Valgrind
|
||||||
run: |
|
run: |
|
||||||
@@ -120,6 +122,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: rustup update stable
|
run: rustup update stable
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
|
||||||
# Run `tokio` with "unstable" cfg flag.
|
# Run `tokio` with "unstable" cfg flag.
|
||||||
- name: test tokio full --cfg unstable
|
- name: test tokio full --cfg unstable
|
||||||
@@ -137,6 +140,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: ${{ env.nightly }}
|
toolchain: ${{ env.nightly }}
|
||||||
override: true
|
override: true
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: Install Miri
|
- name: Install Miri
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
@@ -156,6 +160,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: ${{ env.nightly }}
|
toolchain: ${{ env.nightly }}
|
||||||
override: true
|
override: true
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: asan
|
- name: asan
|
||||||
run: cargo test --all-features --target x86_64-unknown-linux-gnu --lib -- --test-threads 1
|
run: cargo test --all-features --target x86_64-unknown-linux-gnu --lib -- --test-threads 1
|
||||||
working-directory: tokio
|
working-directory: tokio
|
||||||
@@ -181,6 +186,7 @@ jobs:
|
|||||||
toolchain: stable
|
toolchain: stable
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
override: true
|
override: true
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
use-cross: true
|
use-cross: true
|
||||||
@@ -196,6 +202,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: ${{ env.nightly }}
|
toolchain: ${{ env.nightly }}
|
||||||
override: true
|
override: true
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: Install cargo-hack
|
- name: Install cargo-hack
|
||||||
run: cargo install cargo-hack
|
run: cargo install cargo-hack
|
||||||
|
|
||||||
@@ -217,7 +224,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: ${{ env.minrust }}
|
toolchain: ${{ env.minrust }}
|
||||||
override: true
|
override: true
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: "test --workspace --all-features"
|
- name: "test --workspace --all-features"
|
||||||
run: cargo check --workspace --all-features
|
run: cargo check --workspace --all-features
|
||||||
|
|
||||||
@@ -230,6 +237,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: ${{ env.nightly }}
|
toolchain: ${{ env.nightly }}
|
||||||
override: true
|
override: true
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: Install cargo-hack
|
- name: Install cargo-hack
|
||||||
run: cargo install cargo-hack
|
run: cargo install cargo-hack
|
||||||
- name: "check --all-features -Z minimal-versions"
|
- name: "check --all-features -Z minimal-versions"
|
||||||
@@ -248,6 +256,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: rustup update stable
|
run: rustup update stable
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: Install rustfmt
|
- name: Install rustfmt
|
||||||
run: rustup component add rustfmt
|
run: rustup component add rustfmt
|
||||||
|
|
||||||
@@ -267,6 +276,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: rustup update 1.52.1 && rustup default 1.52.1
|
run: rustup update 1.52.1 && rustup default 1.52.1
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: Install clippy
|
- name: Install clippy
|
||||||
run: rustup component add clippy
|
run: rustup component add clippy
|
||||||
|
|
||||||
@@ -283,7 +293,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: ${{ env.nightly }}
|
toolchain: ${{ env.nightly }}
|
||||||
override: true
|
override: true
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: "doc --lib --all-features"
|
- name: "doc --lib --all-features"
|
||||||
run: cargo doc --lib --no-deps --all-features --document-private-items
|
run: cargo doc --lib --no-deps --all-features --document-private-items
|
||||||
env:
|
env:
|
||||||
@@ -306,7 +316,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: rustup update stable
|
run: rustup update stable
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: loom ${{ matrix.scope }}
|
- name: loom ${{ matrix.scope }}
|
||||||
run: cargo test --lib --release --features full -- --nocapture $SCOPE
|
run: cargo test --lib --release --features full -- --nocapture $SCOPE
|
||||||
working-directory: tokio
|
working-directory: tokio
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: rustup update stable
|
run: rustup update stable
|
||||||
|
- uses: Swatinem/rust-cache@v1
|
||||||
- name: Install Valgrind
|
- name: Install Valgrind
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
|
|||||||
Reference in New Issue
Block a user