Skip to content

Commit c9cf63c

Browse files
willieyzmkannwischer
authored andcommitted
CI: Add cross tests for RVV
- This PR replaces the existing RISC-V64 tests with multiple RVV RISC-V64 tests that use different VLEN values (128/256/512/1024). Signed-off-by: willieyz <willie.zhao@chelpis.com>
1 parent 64235d0 commit c9cf63c

File tree

1 file changed

+59
-2
lines changed

1 file changed

+59
-2
lines changed

.github/actions/multi-functest/action.yml

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ runs:
152152
examples: ${{ inputs.examples }}
153153
stack: ${{ inputs.stack }}
154154
extra_args: ${{ inputs.extra_args }}
155-
- name: Cross riscv64 Tests
155+
- name: Cross riscv64 Tests (RVV, VLEN=128)
156156
if: ${{ (inputs.compile_mode == 'all' || inputs.compile_mode == 'cross-riscv64') && (success() || failure()) }}
157157
uses: ./.github/actions/functest
158158
with:
@@ -164,7 +164,64 @@ runs:
164164
cflags: "${{ inputs.cflags }} -DMLD_FORCE_RISCV64"
165165
ldflags: ${{ inputs.ldflags }}
166166
cross_prefix: riscv64-unknown-linux-gnu-
167-
exec_wrapper: qemu-riscv64
167+
exec_wrapper: "qemu-riscv64 -cpu rv64,v=true,vlen=128"
168+
opt: ${{ inputs.opt }}
169+
func: ${{ inputs.func }}
170+
kat: ${{ inputs.kat }}
171+
acvp: ${{ inputs.acvp }}
172+
examples: ${{ inputs.examples }}
173+
stack: ${{ inputs.stack }}
174+
extra_args: ${{ inputs.extra_args }}
175+
- name: Cross riscv64 Tests (RVV, VLEN=256)
176+
if: ${{ (inputs.compile_mode == 'all' || inputs.compile_mode == 'cross-riscv64') && (success() || failure()) }}
177+
uses: ./.github/actions/functest
178+
with:
179+
nix-shell: ${{ inputs.nix-shell }}
180+
nix-cache: ${{ inputs.nix-cache }}
181+
nix-verbose: ${{ inputs.nix-verbose }}
182+
gh_token: ${{ inputs.gh_token }}
183+
custom_shell: ${{ inputs.custom_shell }}
184+
cflags: "${{ inputs.cflags }} -DMLD_FORCE_RISCV64"
185+
cross_prefix: riscv64-unknown-linux-gnu-
186+
exec_wrapper: "qemu-riscv64 -cpu rv64,v=true,vlen=256"
187+
opt: ${{ inputs.opt }}
188+
func: ${{ inputs.func }}
189+
kat: ${{ inputs.kat }}
190+
acvp: ${{ inputs.acvp }}
191+
examples: ${{ inputs.examples }}
192+
stack: ${{ inputs.stack }}
193+
extra_args: ${{ inputs.extra_args }}
194+
- name: Cross riscv64 Tests (RVV, VLEN=512)
195+
if: ${{ (inputs.compile_mode == 'all' || inputs.compile_mode == 'cross-riscv64') && (success() || failure()) }}
196+
uses: ./.github/actions/functest
197+
with:
198+
nix-shell: ${{ inputs.nix-shell }}
199+
nix-cache: ${{ inputs.nix-cache }}
200+
nix-verbose: ${{ inputs.nix-verbose }}
201+
gh_token: ${{ inputs.gh_token }}
202+
custom_shell: ${{ inputs.custom_shell }}
203+
cflags: "${{ inputs.cflags }} -DMLD_FORCE_RISCV64"
204+
cross_prefix: riscv64-unknown-linux-gnu-
205+
exec_wrapper: "qemu-riscv64 -cpu rv64,v=true,vlen=512"
206+
opt: ${{ inputs.opt }}
207+
func: ${{ inputs.func }}
208+
kat: ${{ inputs.kat }}
209+
acvp: ${{ inputs.acvp }}
210+
examples: ${{ inputs.examples }}
211+
stack: ${{ inputs.stack }}
212+
extra_args: ${{ inputs.extra_args }}
213+
- name: Cross riscv64 Tests (RVV, VLEN=1024)
214+
if: ${{ (inputs.compile_mode == 'all' || inputs.compile_mode == 'cross-riscv64') && (success() || failure()) }}
215+
uses: ./.github/actions/functest
216+
with:
217+
nix-shell: ${{ inputs.nix-shell }}
218+
nix-cache: ${{ inputs.nix-cache }}
219+
nix-verbose: ${{ inputs.nix-verbose }}
220+
gh_token: ${{ inputs.gh_token }}
221+
custom_shell: ${{ inputs.custom_shell }}
222+
cflags: "${{ inputs.cflags }} -DMLD_FORCE_RISCV64"
223+
cross_prefix: riscv64-unknown-linux-gnu-
224+
exec_wrapper: "qemu-riscv64 -cpu rv64,v=true,vlen=1024"
168225
opt: ${{ inputs.opt }}
169226
func: ${{ inputs.func }}
170227
kat: ${{ inputs.kat }}

0 commit comments

Comments
 (0)