File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 5
5
TARGET :
6
6
required : true
7
7
8
+ SUDO :
9
+ description : ' Set it to an empty string to run the tests as the current user, leave it with the default value to test with "sudo"'
10
+ required : false
11
+ default : sudo --preserve-env=HOME
12
+
8
13
TOOL :
9
14
description : ' Tool used to involve the test command, can be cargo or cross'
10
15
required : false
24
29
25
30
- name : test
26
31
shell : bash
27
- run : ${{ inputs.TOOL }} test --target ${{ inputs.TARGET }} --all-features
32
+ run : ${{ inputs.SUDO }} $(which ${{ inputs. TOOL }}) test --target ${{ inputs.TARGET }} --all-features
Original file line number Diff line number Diff line change 92
92
uses : ./.github/actions/test
93
93
with :
94
94
TARGET : ' ${{ matrix.target }}'
95
+ SUDO : " "
95
96
TOOL : cross
96
97
RUSTFLAGS : --cfg qemu -D warnings
97
98
You can’t perform that action at this time.
0 commit comments