File tree 2 files changed +34
-2
lines changed 2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : ' Test repeated'
2
+ description : ' Test nix repeated'
3
+ inputs :
4
+ # This is required
5
+ TARGET :
6
+ required : true
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
+
13
+ TOOL :
14
+ description : ' Tool used to involve the test command, can be cargo or cross'
15
+ required : false
16
+ default : cargo
17
+
18
+ RUSTFLAGS :
19
+ required : false
20
+ default : -D warnings -A unknown-lints
21
+
22
+ runs :
23
+ using : " composite"
24
+ steps :
25
+ - name : set up Rust env
26
+ shell : bash
27
+ run : |
28
+ echo "RUSTFLAGS=${{ inputs.RUSTFLAGS }}" >> $GITHUB_ENV
29
+
30
+ - name : test more
31
+ shell : bash
32
+ run : for i in $(seq 50); do ${{ inputs.SUDO }} $(which ${{ inputs.TOOL }}) test --target ${{ inputs.TARGET }} --all-features ; done
Original file line number Diff line number Diff line change 36
36
TARGET : ' ${{ env.TARGET }}'
37
37
38
38
- name : test
39
- uses : ./.github/actions/test
39
+ uses : ./.github/actions/test_more
40
40
with :
41
41
TARGET : ' ${{ env.TARGET }}'
42
42
63
63
TARGET : " ${{ env.TARGET }}"
64
64
65
65
- name : test
66
- uses : ./.github/actions/test
66
+ uses : ./.github/actions/test_more
67
67
with :
68
68
TARGET : " ${{ env.TARGET }}"
69
69
You can’t perform that action at this time.
0 commit comments