Commit 31bea95 1 parent a82b837 commit 31bea95 Copy full SHA for 31bea95
File tree 7 files changed +174
-264
lines changed
7 files changed +174
-264
lines changed Original file line number Diff line number Diff line change
1
+ name : ARM Test
2
+ on :
3
+ workflow_call :
4
+ inputs :
5
+ target :
6
+ required : true
7
+ type : string
8
+ target-in-caps :
9
+ required : true
10
+ type : string
11
+
12
+ jobs :
13
+ test-software :
14
+ strategy :
15
+ fail-fast : false
16
+ matrix :
17
+ channel : [ stable, beta, nightly ]
18
+ name : Test of Software AES on ${{ inputs.target }} with ${{ matrix.channel }}
19
+ uses : ./.github/workflows/runtest.yml
20
+ with :
21
+ target : ${{ inputs.target }}
22
+ channel : ${{ matrix.channel }}
23
+
24
+ test-neon :
25
+ strategy :
26
+ fail-fast : false
27
+ matrix :
28
+ channel : [ stable, beta, nightly ]
29
+ name : Test of Neon on ${{ inputs.target }} with ${{ matrix.channel }}
30
+ uses : ./.github/workflows/runtest.yml
31
+ with :
32
+ target : ${{ inputs.target }}
33
+ channel : ${{ matrix.channel }}
34
+ env-vars : ${{ format('CROSS_TARGET_{0}_RUSTFLAGS=+aes', inputs.target-in-caps) }}
Original file line number Diff line number Diff line change @@ -27,24 +27,50 @@ jobs:
27
27
command : fmt
28
28
args : --all --check
29
29
30
- test :
30
+ test-x86 :
31
31
strategy :
32
32
fail-fast : false
33
33
matrix :
34
34
target :
35
35
- triple : x86_64-unknown-linux-gnu
36
36
caps : X86_64_UNKNOWN_LINUX_GNU
37
+ uses : ./.github/workflows/x86.yml
38
+ with :
39
+ target : ${{ matrix.target.triple }}
40
+ target-in-caps : ${{ matrix.target.caps }}
41
+
42
+ test-arm :
43
+ strategy :
44
+ fail-fast : false
45
+ matrix :
46
+ target :
37
47
- triple : aarch64-unknown-linux-gnu
38
48
caps : AARCH64_UNKNOWN_LINUX_GNU
49
+ uses : ./.github/workflows/arm.yml
50
+ with :
51
+ target : ${{ matrix.target.triple }}
52
+ target-in-caps : ${{ matrix.target.caps }}
53
+
54
+ test-riscv :
55
+ strategy :
56
+ fail-fast : false
57
+ matrix :
58
+ target :
39
59
- triple : riscv64gc-unknown-linux-gnu
40
60
caps : RISCV64GC_UNKNOWN_LINUX_GNU
41
- channel :
42
- - stable
43
- - beta
44
- - nightly
45
- uses : ./.github/workflows/rust.yml
61
+ uses : ./.github/workflows/riscv.yml
46
62
with :
47
63
target : ${{ matrix.target.triple }}
48
64
target-in-caps : ${{ matrix.target.caps }}
49
- channel : ${{ matrix.channel }}
50
- secrets : inherit
65
+
66
+ test-other :
67
+ strategy :
68
+ fail-fast : false
69
+ matrix :
70
+ target :
71
+ - triple : powerpc64-unknown-linux-gnu
72
+ caps : POWERPC64_UNKNOWN_LINUX_GNU
73
+ uses : ./.github/workflows/other.yml
74
+ with :
75
+ target : ${{ matrix.target.triple }}
76
+ target-in-caps : ${{ matrix.target.caps }}
Original file line number Diff line number Diff line change
1
+ name : X86 Test
2
+ on :
3
+ workflow_call :
4
+ inputs :
5
+ target :
6
+ required : true
7
+ type : string
8
+
9
+ jobs :
10
+ test-software :
11
+ strategy :
12
+ fail-fast : false
13
+ matrix :
14
+ channel : [ stable, beta, nightly ]
15
+ name : Test of Software AES on ${{ inputs.target }} with ${{ matrix.channel }}
16
+ uses : ./.github/workflows/runtest.yml
17
+ with :
18
+ target : ${{ inputs.target }}
19
+ channel : ${{ matrix.channel }}
Original file line number Diff line number Diff line change
1
+ name : RISC-V Test
2
+ on :
3
+ workflow_call :
4
+ inputs :
5
+ target :
6
+ required : true
7
+ type : string
8
+ target-in-caps :
9
+ required : true
10
+ type : string
11
+
12
+ jobs :
13
+ test-software :
14
+ strategy :
15
+ fail-fast : false
16
+ matrix :
17
+ channel : [ stable, beta, nightly ]
18
+ name : Test of Software AES on ${{ inputs.target }} with ${{ matrix.channel }}
19
+ uses : ./.github/workflows/runtest.yml
20
+ with :
21
+ target : ${{ inputs.target }}
22
+ channel : ${{ matrix.channel }}
23
+
24
+ test-riscv :
25
+ name : Test of RISC-V on ${{ inputs.target }}
26
+ uses : ./.github/workflows/runtest.yml
27
+ with :
28
+ target : ${{ inputs.target }}
29
+ channel : nightly
30
+ env-vars : ${{ format('CROSS_TARGET_{0}_RUSTFLAGS=+zkne,+zknd', inputs.target-in-caps) }}
Original file line number Diff line number Diff line change 7
7
type : string
8
8
channel :
9
9
required : true
10
- type : boolean
11
- target-feature :
10
+ type : string
11
+ env-vars :
12
12
required : false
13
13
type : string
14
14
default : ' '
15
15
jobs :
16
16
test :
17
+ continue-on-error : ${{ inputs.channel == 'nightly' }}
17
18
runs-on : ubuntu-latest
18
19
steps :
19
20
- uses : actions/checkout@v3
20
21
21
- - run : ${{ format('echo "{0}" >> $GITHUB_ENV', inputs.target-feature ) }}
22
+ - run : ${{ format('echo "{0}" >> $GITHUB_ENV', inputs.env-vars ) }}
22
23
23
24
- name : Install Rust
24
25
uses : actions-rs/toolchain@v1
@@ -33,19 +34,19 @@ jobs:
33
34
uses : actions-rs/cargo@v1
34
35
with :
35
36
command : clippy
36
- args : +${{ inputs.channel }} --target ${{ inputs.target }} ${{ inputs.channel == 'nightly' && '--features=nightly' || '' }}
37
+ args : --target ${{ inputs.target }} ${{ inputs.channel == 'nightly' && '--features=nightly' || '' }}
37
38
38
39
- name : Build
39
40
uses : actions-rs/cargo@v1
40
41
with :
41
42
use-cross : true
42
43
command : build
43
- args : +${{ inputs.channel }} --target ${{ inputs.target }} ${{ inputs.channel == 'nightly' && '--features=nightly' || '' }}
44
+ args : --target ${{ inputs.target }} ${{ inputs.channel == 'nightly' && '--features=nightly' || '' }}
44
45
45
46
- name : Test
46
47
uses : actions-rs/cargo@v1
47
48
with :
48
49
use-cross : true
49
50
command : test
50
- args : +${{ inputs.channel }} --target ${{ inputs.target }} ${{ inputs.channel == 'nightly' && '--features=nightly' || '' }}
51
+ args : --target ${{ inputs.target }} ${{ inputs.channel == 'nightly' && '--features=nightly' || '' }}
51
52
You can’t perform that action at this time.
0 commit comments