mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-03 15:54:48 +00:00
ci: pin Rust to 1.81 for wasm32-unknown-unknown
tests (#3125)
There is an incompatibility with the version of Node available on our test runners and wasm32 in Rust 1.82 (#3123). To unblock the CI, this change pins Rust to 1.81 for the tests using the `wasm32-unknown-unknown` target. This is the same strategy used in Tokio to mitigate tokio-rs/tokio#6910 until a more permanent fix can be put in place. This change also bumps the MSRV on the `tracing-examples` crate from 1.63.0 to 1.64.0 to avoid triggering a lint about the MSRV after a change in Tokio 1.41.0 which bumps the required Rust version for the `try_join!` macro. The Tokio MSRV is 1.70 now, so needing this bump for the examples seems reasonable.
This commit is contained in:
parent
70a867877d
commit
5d14a52987
24
.github/workflows/CI.yml
vendored
24
.github/workflows/CI.yml
vendored
@ -35,7 +35,7 @@ jobs:
|
|||||||
name: cargo check
|
name: cargo check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- name: Check
|
- name: Check
|
||||||
run: cargo check --all --tests --benches
|
run: cargo check --all --tests --benches
|
||||||
@ -46,7 +46,7 @@ jobs:
|
|||||||
needs: check
|
needs: check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
@ -58,7 +58,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: check
|
needs: check
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
components: clippy
|
components: clippy
|
||||||
@ -88,7 +88,7 @@ jobs:
|
|||||||
- tracing
|
- tracing
|
||||||
- tracing-subscriber
|
- tracing-subscriber
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- name: install cargo-hack
|
- name: install cargo-hack
|
||||||
uses: taiki-e/install-action@cargo-hack
|
uses: taiki-e/install-action@cargo-hack
|
||||||
@ -146,7 +146,7 @@ jobs:
|
|||||||
- 1.63.0
|
- 1.63.0
|
||||||
- stable
|
- stable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: install Rust nightly
|
- name: install Rust nightly
|
||||||
uses: dtolnay/rust-toolchain@nightly
|
uses: dtolnay/rust-toolchain@nightly
|
||||||
- name: "install Rust ${{ matrix.toolchain }}"
|
- name: "install Rust ${{ matrix.toolchain }}"
|
||||||
@ -210,7 +210,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: "install Rust ${{ matrix.rust }}"
|
- name: "install Rust ${{ matrix.rust }}"
|
||||||
uses: dtolnay/rust-toolchain@master
|
uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
@ -252,7 +252,7 @@ jobs:
|
|||||||
- tracing-tower
|
- tracing-tower
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
target: wasm32-unknown-unknown
|
target: wasm32-unknown-unknown
|
||||||
@ -268,9 +268,11 @@ jobs:
|
|||||||
subcrate:
|
subcrate:
|
||||||
- tracing
|
- tracing
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- name: Install Rust 1.81
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
|
toolchain: 1.81
|
||||||
target: wasm32-unknown-unknown
|
target: wasm32-unknown-unknown
|
||||||
- name: install test runner for wasm
|
- name: install test runner for wasm
|
||||||
uses: taiki-e/install-action@wasm-pack
|
uses: taiki-e/install-action@wasm-pack
|
||||||
@ -283,7 +285,7 @@ jobs:
|
|||||||
needs: check
|
needs: check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- name: "Test log support"
|
- name: "Test log support"
|
||||||
run: cargo test
|
run: cargo test
|
||||||
@ -315,4 +317,4 @@ jobs:
|
|||||||
- test-wasm
|
- test-wasm
|
||||||
- test-features-stable
|
- test-features-stable
|
||||||
steps:
|
steps:
|
||||||
- run: exit 0
|
- run: exit 0
|
||||||
|
@ -3,7 +3,7 @@ name = "tracing-examples"
|
|||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
publish = false
|
publish = false
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
rust-version = "1.63.0"
|
rust-version = "1.64.0"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user