update and improve testsuite #761
This file contains hidden or 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: | |
| 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 | |
| - name: Install qemu-run | |
| uses: taiki-e/cache-cargo-install-action@v3 | |
| with: | |
| tool: qemu-run | |
| - name: Install QEMU Dependencies | |
| run: | | |
| sudo apt-get -y update | |
| sudo apt-get -y install libpixman-1-0 libfdt1 libglib2.0-0t64 | |
| - name: Install custom QEMU into /opt | |
| run: | | |
| curl -sSL https://github.com/jonathanpallant/qemu9-for-ubuntu-2404/releases/download/qemu-9.2.3%2Bbuild0/qemu-9.2.3-ubuntu-24.04.tar.gz | sudo tar xvzf - -C / | |
| - name: Run testsuite | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: thumbv7em-none-eabihf | |
| - name: Run testsuite | |
| run: | | |
| export PATH=/opt/qemu/bin:$PATH | |
| cd testsuite && cargo test --features qemu |