File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ inputs:
38
38
runs :
39
39
using : " composite"
40
40
steps :
41
+ - name : set up Rust env
42
+ shell : bash
43
+ run : |
44
+ echo "RUSTFLAGS=${{ inputs.RUSTFLAGS }}" >> $GITHUB_ENV
45
+ echo "RUSTDOCFLAGS=${{ inputs.RUSTDOCFLAGS }}" >> $GITHUB_ENV
46
+
41
47
- name : debug info
42
48
shell : bash
43
49
run : |
Original file line number Diff line number Diff line change @@ -10,9 +10,18 @@ inputs:
10
10
required : false
11
11
default : cargo
12
12
13
+ RUSTFLAGS :
14
+ required : false
15
+ default : -D warnings -A unknown-lints
16
+
13
17
runs :
14
18
using : " composite"
15
19
steps :
20
+ - name : set up Rust env
21
+ shell : bash
22
+ run : |
23
+ echo "RUSTFLAGS=${{ inputs.RUSTFLAGS }}" >> $GITHUB_ENV
24
+
16
25
- name : test
17
26
shell : bash
18
27
run : ${{ inputs.TOOL }} test --target ${{ inputs.TARGET }} --all-features
Original file line number Diff line number Diff line change @@ -82,12 +82,14 @@ jobs:
82
82
with :
83
83
TARGET : ' ${{ matrix.target }}'
84
84
TOOL : cross
85
+ RUSTFLAGS : --cfg qemu -D warnings
85
86
86
87
- name : test
87
88
uses : ./.github/actions/test
88
89
with :
89
90
TARGET : ' ${{ matrix.target }}'
90
91
TOOL : cross
92
+ RUSTFLAGS : --cfg qemu -D warnings
91
93
92
94
- name : before_cache_script
93
95
run : rm -rf $CARGO_HOME/registry/index
You can’t perform that action at this time.
0 commit comments