ci: Add rust-min-version-check
Add a check to make sure we stay within the minimum version required to build with DTS, which is updated frequently, but may still lag behind in comparison to Fedora stable. Closes: #1606 Approved by: cgwalters
This commit is contained in:
parent
e15baebc68
commit
7c2b9c3276
25
.papr.yml
25
.papr.yml
@ -167,3 +167,28 @@ tests:
|
|||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- ex-container-logs
|
- ex-container-logs
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- auto
|
||||||
|
- try
|
||||||
|
|
||||||
|
context: rust-min-version-check
|
||||||
|
timeout: 30m
|
||||||
|
|
||||||
|
required: true
|
||||||
|
container:
|
||||||
|
image: registry.fedoraproject.org/fedora:28
|
||||||
|
|
||||||
|
env:
|
||||||
|
# this corresponds to the DTS rustc version we want to support
|
||||||
|
RUST_MIN_VERSION: 1.26.2
|
||||||
|
|
||||||
|
tests:
|
||||||
|
- ci/installdeps.sh
|
||||||
|
- yum remove -y cargo
|
||||||
|
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_MIN_VERSION -y
|
||||||
|
- PATH=$HOME/.cargo/bin:$PATH sh -c 'cd rust && rustc --version && cargo build' |& tee out.txt
|
||||||
|
- grep $RUST_MIN_VERSION out.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user