@@ -177,7 +177,7 @@ jobs:
177
177
run : |
178
178
set -euxo pipefail
179
179
RUSTFLAGS="$RUSTFLAGS -C panic=abort -Zpanic-abort-tests" cargo nextest run --workspace --exclude tokio-macros --exclude tests-build --all-features --tests
180
-
180
+
181
181
test-integration-tests-per-feature :
182
182
needs : basics
183
183
name : Run integration tests for each feature
@@ -455,10 +455,18 @@ jobs:
455
455
runs-on : ubuntu-latest
456
456
steps :
457
457
- uses : actions/checkout@v4
458
- - name : Check semver
458
+ - name : Check `tokio` semver
459
+ uses : obi1kenobi/cargo-semver-checks-action@v2
460
+ with :
461
+ rust-toolchain : ${{ env.rust_stable }}
462
+ package : tokio
463
+ release-type : minor
464
+ - name : Check semver for rest of the workspace
465
+ if : ${{ !startsWith(github.event.pull_request.base.ref, 'tokio-1.') }}
459
466
uses : obi1kenobi/cargo-semver-checks-action@v2
460
467
with :
461
468
rust-toolchain : ${{ env.rust_stable }}
469
+ exclude : tokio
462
470
release-type : minor
463
471
464
472
cross-check :
@@ -689,7 +697,14 @@ jobs:
689
697
toolchain : ${{ env.rust_min }}
690
698
- uses : Swatinem/rust-cache@v2
691
699
- name : " check --workspace --all-features"
692
- run : cargo check --workspace --all-features
700
+ run : |
701
+ if [[ "${{ github.event.pull_request.base.ref }}" =~ ^tokio-1\..* ]]; then
702
+ # Only check `tokio` crate as the PR is backporting to an earlier tokio release.
703
+ cargo check -p tokio --all-features
704
+ else
705
+ # Check all crates in the workspace
706
+ cargo check --workspace --all-features
707
+ fi
693
708
env :
694
709
RUSTFLAGS : " " # remove -Dwarnings
695
710
@@ -927,10 +942,10 @@ jobs:
927
942
targets : ${{ matrix.target }}
928
943
929
944
# Install dependencies
930
- - name : Install cargo-hack, wasmtime, and cargo-wasi
945
+ - name : Install cargo-hack, wasmtime
931
946
uses : taiki-e/install-action@v2
932
947
with :
933
- tool : cargo-hack,wasmtime,cargo-wasi
948
+ tool : cargo-hack,wasmtime
934
949
935
950
- uses : Swatinem/rust-cache@v2
936
951
- name : WASI test tokio full
@@ -956,9 +971,12 @@ jobs:
956
971
957
972
- name : test tests-integration --features wasi-rt
958
973
# TODO: this should become: `cargo hack wasi test --each-feature`
959
- run : cargo wasi test --test rt_yield --features wasi-rt
974
+ run : cargo test --target ${{ matrix.target }} --test rt_yield --features wasi-rt
960
975
if : matrix.target == 'wasm32-wasip1'
961
976
working-directory : tests-integration
977
+ env :
978
+ CARGO_TARGET_WASM32_WASIP1_RUNNER : " wasmtime run --"
979
+ RUSTFLAGS : -Dwarnings -C target-feature=+atomics,+bulk-memory -C link-args=--max-memory=67108864
962
980
963
981
- name : test tests-integration --features wasi-threads-rt
964
982
run : cargo test --target ${{ matrix.target }} --features wasi-threads-rt
@@ -980,7 +998,7 @@ jobs:
980
998
rust :
981
999
# `check-external-types` requires a specific Rust nightly version. See
982
1000
# the README for details: https://github.com/awslabs/cargo-check-external-types
983
- - nightly-2023-10-21
1001
+ - nightly-2024-06-30
984
1002
steps :
985
1003
- uses : actions/checkout@v4
986
1004
- name : Install Rust ${{ matrix.rust }}
@@ -991,7 +1009,7 @@ jobs:
991
1009
- name : Install cargo-check-external-types
992
1010
uses : taiki-e/cache-cargo-install-action@v1
993
1011
with :
994
-
1012
+
995
1013
- name : check-external-types
996
1014
run : cargo check-external-types --all-features
997
1015
working-directory : tokio
@@ -1051,11 +1069,11 @@ jobs:
1051
1069
- name : Make sure dictionary words are sorted and unique
1052
1070
run : |
1053
1071
# `sed` removes the first line (number of words) and
1054
- # the last line (new line).
1055
- #
1072
+ # the last line (new line).
1073
+ #
1056
1074
# `sort` makes sure everything in between is sorted
1057
1075
# and contains no duplicates.
1058
- #
1076
+ #
1059
1077
# Since `sort` is sensitive to locale, we set it
1060
1078
# using LC_ALL to en_US.UTF8 to be consistent in different
1061
1079
# environments.
0 commit comments