File tree Expand file tree Collapse file tree 2 files changed +25
-11
lines changed Expand file tree Collapse file tree 2 files changed +25
-11
lines changed Original file line number Diff line number Diff line change 43
43
- env :
44
44
TARGET : ${{ matrix.target }}
45
45
CHANNEL : ${{ matrix.channel }}
46
- CROSS : ${{ matrix.target != 'x86_64-unknown-linux-gnu' && '1' || '0' }}
47
- NO_STD : ${{ matrix.target == 'thumbv6m-none-eabi' && '1' || '0' }}
48
46
run : sh ci/run.sh
49
47
strategy :
50
48
matrix :
Original file line number Diff line number Diff line change 4
4
5
5
: " ${TARGET?The TARGET environment variable must be set.} "
6
6
7
+ case " ${TARGET} " in
8
+ x86_64-unknown-linux-gnu|x86_64-apple-darwin|x86_64-pc-windows-msvc)
9
+ CROSS=0
10
+ NO_STD=0
11
+ ;;
12
+ thumbv6m-none-eabi)
13
+ CROSS=1
14
+ NO_STD=1
15
+ ;;
16
+ * )
17
+ CROSS=1
18
+ NO_STD=0
19
+ ;;
20
+ esac
21
+
22
+ CARGO=cargo
23
+ if [ " ${CROSS} " = " 1" ]; then
24
+ export CARGO_NET_RETRY=5
25
+ export CARGO_NET_TIMEOUT=10
26
+
27
+ cargo install --locked cross
28
+ CARGO=cross
29
+ fi
30
+
7
31
if [ " ${NO_STD} " = " 1" ]; then
8
32
# Unfortunately serde currently doesn't work without std due to a cargo bug.
9
33
FEATURES=" rustc-internal-api"
12
36
FEATURES=" rustc-internal-api,serde,rayon,raw"
13
37
OP=" test"
14
38
fi
39
+
15
40
if [ " ${CHANNEL} " = " nightly" ]; then
16
41
FEATURES=" ${FEATURES} ,nightly"
17
42
export RUSTFLAGS=" $RUSTFLAGS -D warnings"
18
43
fi
19
44
20
- CARGO=cargo
21
- if [ " ${CROSS} " = " 1" ]; then
22
- export CARGO_NET_RETRY=5
23
- export CARGO_NET_TIMEOUT=10
24
-
25
- cargo install --locked cross
26
- CARGO=cross
27
- fi
28
-
29
45
# Make sure we can compile without the default hasher
30
46
" ${CARGO} " -vv build --target=" ${TARGET} " --no-default-features
31
47
" ${CARGO} " -vv build --target=" ${TARGET} " --release --no-default-features
You can’t perform that action at this time.
0 commit comments