@@ -64,31 +64,40 @@ jobs:
6464 - name : Build/${{ matrix.compile_features }}
6565 run : cargo build --verbose --no-default-features --features "${{ matrix.compile_features }},${COMMON_FEATURES}"
6666
67- build-msrv :
68- runs-on : ubuntu-latest
69- container :
70- image : rust:1.85
67+ build :
68+ strategy :
69+ matrix :
70+ os : [ubuntu-latest, windows-latest]
71+ rust : [1.85, stable]
7172
73+ runs-on : ${{ matrix.os }}
7274 steps :
7375 - uses : actions/checkout@v4
74- - name : Build
76+ - name : Setting up Rust
77+ uses : actions-rs/toolchain@v1
78+ with :
79+ toolchain : ${{ matrix.rust }}
80+ override : true
81+ - name : Build and Doc (Async)
7582 run : |
76- for td_model in async multi_threaded single_threaded; do
77- echo "Compiling with features: $td_model, ${COMMON_FEATURES}"
78- cargo build --verbose --no-default-features --features "$td_model,${COMMON_FEATURES}"
79- done
80- - name : Doc
83+ cargo build --verbose --no-default-features --features "async,${COMMON_FEATURES}"
84+ cargo doc --verbose --no-default-features --features "async,${COMMON_FEATURES}"
85+
86+ - name : Build and Doc (Multi-threaded)
8187 run : |
82- for td_model in async multi_threaded single_threaded; do
83- echo "Generating documentation with features: $td_model, ${COMMON_FEATURES}"
84- cargo doc --verbose --no-default-features --features "$td_model,${COMMON_FEATURES}"
85- done
88+ cargo build --verbose --no-default-features --features "multi_threaded,${COMMON_FEATURES}"
89+ cargo doc --verbose --no-default-features --features "multi_threaded,${COMMON_FEATURES}"
90+
91+ - name : Build and Doc (Single-threaded)
92+ run : |
93+ cargo build --verbose --no-default-features --features "single_threaded,${COMMON_FEATURES}"
94+ cargo doc --verbose --no-default-features --features "single_threaded,${COMMON_FEATURES}"
8695
8796 publish :
8897 runs-on : ubuntu-latest
8998 container :
9099 image : rust:1.85
91- needs : [test, build-msrv ]
100+ needs : [test, build]
92101 environment : production
93102 if : startsWith(github.ref, 'refs/tags/v')
94103 steps :
0 commit comments