File tree 2 files changed +15
-2
lines changed 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,22 @@ jobs:
23
23
# Temporary hack as long as we use the current CI script
24
24
TRAVIS_OS_NAME : [linux]
25
25
26
+ FEATURES : []
27
+
26
28
include :
27
29
# Test MSRV
28
30
- rust : 1.40.0
29
31
VENDOR : Nordic
30
32
TARGET : x86_64-unknown-linux-gnu
31
33
TRAVIS_OS_NAME : linux
32
34
35
+ # Test features
36
+ - rust : 1.51.0
37
+ VENDOR : RISC-V
38
+ TARGET : x86_64-unknown-linux-gnu
39
+ TRAVIS_OS_NAME : linux
40
+ FEATURES : strict,const-generic
41
+
33
42
# Use nightly for architectures which don't support stable
34
43
- rust : nightly
35
44
experimental : true
64
73
override : true
65
74
components : rustfmt
66
75
- name : Run CI script for ${{ matrix.VENDOR }} under ${{ matrix.rust }}
67
- run : TARGET=${{ matrix.TARGET }} VENDOR=${{ matrix.VENDOR }} TRAVIS_OS_NAME=${{ matrix.TRAVIS_OS_NAME }} bash ci/script.sh
76
+ run : TARGET=${{ matrix.TARGET }} VENDOR=${{ matrix.VENDOR }} TRAVIS_OS_NAME=${{ matrix.TRAVIS_OS_NAME }} FEATURES=${{ matrix.FEATURES }} bash ci/script.sh
Original file line number Diff line number Diff line change @@ -55,7 +55,11 @@ main() {
55
55
return
56
56
fi
57
57
58
- cargo build --target $TARGET --release
58
+ if [ -n ${FEATURES-} ]; then
59
+ cargo build --target $TARGET --release --features $FEATURES
60
+ else
61
+ cargo build --target $TARGET --release
62
+ fi
59
63
60
64
case $TRAVIS_OS_NAME in
61
65
linux)
You can’t perform that action at this time.
0 commit comments