mirror of
https://github.com/fafhrd91/actix-net
synced 2025-02-20 07:40:33 +01:00
ci: read MSRV from manifest (#559)
This commit is contained in:
parent
db7988609e
commit
af8e6cd656
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -13,7 +13,14 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
read_msrv:
|
||||||
|
name: Read MSRV
|
||||||
|
uses: actions-rust-lang/msrv/.github/workflows/msrv.yml@main
|
||||||
|
|
||||||
build_and_test:
|
build_and_test:
|
||||||
|
needs:
|
||||||
|
- read_msrv
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -24,7 +31,7 @@ jobs:
|
|||||||
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc }
|
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc }
|
||||||
- { name: Windows (MinGW), os: windows-latest, triple: x86_64-pc-windows-gnu }
|
- { name: Windows (MinGW), os: windows-latest, triple: x86_64-pc-windows-gnu }
|
||||||
version:
|
version:
|
||||||
- { name: msrv, version: 1.70.0 }
|
- { name: msrv, version: "${{ needs.read_msrv.outputs.msrv }}" }
|
||||||
- { name: stable, version: stable }
|
- { name: stable, version: stable }
|
||||||
|
|
||||||
name: ${{ matrix.target.name }} / ${{ matrix.version.name }}
|
name: ${{ matrix.target.name }} / ${{ matrix.version.name }}
|
||||||
|
7
justfile
7
justfile
@ -27,6 +27,13 @@ all_crate_features := if os() == "linux" {
|
|||||||
"--features='" + non_linux_all_features_list + "'"
|
"--features='" + non_linux_all_features_list + "'"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m:
|
||||||
|
cargo metadata --format-version=1 \
|
||||||
|
| jq -r 'first(.packages[] | select(.source == null)) | .rust_version' \
|
||||||
|
| sed -E 's/^1\.([0-9]{2})$/1\.\1\.0/' \
|
||||||
|
| xargs -0 printf "msrv=%s" \
|
||||||
|
| tee /dev/stderr
|
||||||
|
|
||||||
# Test workspace code.
|
# Test workspace code.
|
||||||
test toolchain="":
|
test toolchain="":
|
||||||
cargo {{ toolchain }} test --lib --tests --package=actix-macros
|
cargo {{ toolchain }} test --lib --tests --package=actix-macros
|
||||||
|
Loading…
x
Reference in New Issue
Block a user