File tree 2 files changed +8
-1
lines changed
2 files changed +8
-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 to "sudo" to run the build with sudo, or leave undefined to run as the current user'
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 84
84
- name : build
85
85
uses : ./.github/actions/build
86
86
with :
87
+ SUDO : " "
87
88
TARGET : ' ${{ matrix.target }}'
88
89
TOOL : cross
89
90
RUSTFLAGS : --cfg qemu -D warnings
92
93
uses : ./.github/actions/test
93
94
with :
94
95
TARGET : ' ${{ matrix.target }}'
96
+ SUDO : " "
95
97
TOOL : cross
96
98
RUSTFLAGS : --cfg qemu -D warnings
97
99
You can’t perform that action at this time.
0 commit comments