File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 55 TARGET :
66 required : true
77
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+
813 TOOL :
914 description : ' Tool used to involve the test command, can be cargo or cross'
1015 required : false
2429
2530 - name : test
2631 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 8484 - name : build
8585 uses : ./.github/actions/build
8686 with :
87+ SUDO : " "
8788 TARGET : ' ${{ matrix.target }}'
8889 TOOL : cross
8990 RUSTFLAGS : --cfg qemu -D warnings
9293 uses : ./.github/actions/test
9394 with :
9495 TARGET : ' ${{ matrix.target }}'
96+ SUDO : " "
9597 TOOL : cross
9698 RUSTFLAGS : --cfg qemu -D warnings
9799
You can’t perform that action at this time.
0 commit comments