Skip to content

Commit b6f0bcc

Browse files
committed
Run aarch32 test in CI
Add building a aarch32 and testing of it to CI Signed-off-by: Abe Kohandel <[email protected]>
1 parent c2ea2b4 commit b6f0bcc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
target:
23+
- "thumbv7em-none-eabi"
2324
- "aarch64-unknown-none-softfloat"
2425
- "riscv64gc-unknown-none-elf"
2526
- "x86_64-unknown-linux-gnu"
@@ -52,6 +53,7 @@ jobs:
5253
strategy:
5354
matrix:
5455
target:
56+
- "thumbv7em-none-eabi"
5557
- "aarch64-unknown-none-softfloat"
5658
- "riscv64gc-unknown-none-elf"
5759

@@ -68,7 +70,12 @@ jobs:
6870
- name: Install QEMU
6971
run: |
7072
sudo apt update
71-
sudo apt install qemu-system
73+
sudo apt install --no-install-recommends qemu-system
74+
75+
- name: Run tests AARCH32
76+
if: matrix.target == 'thumbv7em-none-eabi'
77+
run: |
78+
RUSTFLAGS="-D warnings -C link-arg=-Ttests/armv7m_mps2an500/link.ld" cargo test --target ${{ matrix.target }} --release
7279
7380
- name: Run tests AARCH64
7481
if: matrix.target == 'aarch64-unknown-none-softfloat'

tests/test_runner_wrapper.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ TIMEOUT="timeout 10"
44
if [[ $1 == *"aarch64"* ]]; then
55
$TIMEOUT qemu-system-aarch64 -M raspi3b -display none -semihosting -kernel $1
66
elif [[ $1 == *"thumbv7em"* ]]; then
7-
arm-none-eabi-objcopy -O binary $1 /tmp/qemu_exit_armv7em.bin
8-
qemu-system-arm -m 16M -nographic -M mps2-an500 -cpu cortex-m7 -serial mon:stdio -semihosting -kernel /tmp/qemu_exit_armv7em.bin
7+
qemu-system-arm -m 16M -nographic -M mps2-an500 -cpu cortex-m7 -serial mon:stdio -semihosting -kernel $1
98
elif [[ $1 == *"riscv64"* ]]; then
109
$TIMEOUT qemu-system-riscv64 -M virt -bios tests/riscv64_virt/fw_jump.elf -display none -kernel $1
1110
fi

0 commit comments

Comments
 (0)