Prepare for cortex-m-rt 0.7.5 #360
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches-ignore: | |
- "gh-readonly-queue/**" | |
pull_request: | |
merge_group: | |
# allows manual triggering | |
workflow_dispatch: | |
name: cortex-m on-target tests | |
jobs: | |
hil-qemu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: thumbv7m-none-eabi | |
- name: Build testsuite | |
env: | |
RUSTFLAGS: -C link-arg=-Tlink.x -D warnings | |
run: cargo build -p testsuite --target thumbv7m-none-eabi | |
- name: Install QEMU | |
run: sudo apt-get update && sudo apt-get install qemu qemu-system-arm | |
- name: Run testsuite | |
run: | | |
qemu-system-arm \ | |
-cpu cortex-m3 \ | |
-machine lm3s6965evb \ | |
-nographic \ | |
-semihosting-config enable=on,target=native \ | |
-kernel target/thumbv7m-none-eabi/debug/testsuite | |
hil-compile-rtt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
targets: thumbv6m-none-eabi | |
- name: Modify linkerfile | |
run: | | |
sed -i 's/FLASH : ORIGIN = 0x00000000, LENGTH = 256K/FLASH : ORIGIN = 0x8000000, LENGTH = 128K/g' memory.x | |
sed -i 's/RAM : ORIGIN = 0x20000000, LENGTH = 64K/RAM : ORIGIN = 0x20000000, LENGTH = 16K/g' memory.x | |
- name: Build testsuite | |
env: | |
RUSTFLAGS: -C link-arg=-Tlink.x -D warnings | |
run: cargo build -p testsuite --target thumbv6m-none-eabi --features rtt | |
- name: Upload testsuite binaries | |
uses: actions/upload-artifact@v4 | |
with: | |
name: testsuite-bin | |
if-no-files-found: error | |
retention-days: 1 | |
path: target/thumbv6m-none-eabi/debug/testsuite | |
hil-stm32: | |
runs-on: self-hosted | |
needs: | |
- hil-compile-rtt | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Display probe-rs version | |
run: probe-rs --version | |
- name: List probes | |
run: probe-rs list | |
- uses: actions/download-artifact@v4 | |
with: | |
name: testsuite-bin | |
path: testsuite-bin | |
- name: Run on-target tests | |
timeout-minutes: 5 | |
run: | | |
probe-rs run \ | |
--chip STM32F070RBTx \ | |
--connect-under-reset \ | |
--probe 0483:374b:066CFF504955857567220634 \ | |
testsuite-bin/testsuite |