Add stm32 test suite #203
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
--- | |
name: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_call: | |
jobs: | |
Linux_Tests: | |
name: Linux Tests | |
runs-on: self-hosted | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Rust and FTDI | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
apt-get install libftdi1 libftdi1-dev -y | |
- name: FT232H Tests | |
run: | | |
echo "Running FT232H Tests" | |
source "$HOME"/.cargo/env | |
cd tests | |
cargo test --test linux --features=std -- --test-threads=1 # Run Linux Tests using FTD232 | |
Raspberry_Pi_Tests: | |
name: Raspberry Pi Tests | |
runs-on: self-hosted | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
run: | | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
- name: Raspberry Pi Tests | |
run: | | |
echo "Running Raspberry Pi Tests" | |
source "$HOME"/.cargo/env | |
cd tests | |
cargo test --test linux --features=rpi -- --test-threads=1 # Run Linux Tests using Raspberry Pi I2C Hardware | |
ESP32C3_Tests: | |
name: ESP32C3 Tests | |
runs-on: self-hosted | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Rust, probe-rs and ESP32C3 toolchain | |
run: | | |
apt-get install --yes clang curl git libudev-dev libssl-dev pkg-config python3-pip | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/probe-rs/probe-rs/releases/latest/download/probe-rs-tools-installer.sh | sh | |
source "$HOME"/.cargo/env | |
rustup toolchain install nightly --component rust-src | |
cargo install espflash ldproxy | |
- name: ESP32C3 Tests | |
run: | | |
echo "Running ESP32C3 Tests" | |
source "$HOME"/.cargo/env | |
cd tests/esp32c3 | |
cargo test # Probe UUID defined in .cargo/config.toml | |
PiPico_Tests: | |
name: RP2040W Pico Tests | |
runs-on: self-hosted | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Rust and probe-rs | |
run: | | |
apt-get install --yes clang curl git libudev-dev libssl-dev pkg-config python3-pip | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/probe-rs/probe-rs/releases/latest/download/probe-rs-tools-installer.sh | sh | |
source "$HOME"/.cargo/env | |
rustup toolchain install nightly --component rust-src | |
rustup target add thumbv6m-none-eabi | |
- name: RP2040W Pi Pico Tests | |
run: | | |
echo "Running RP2040W Pi Pico Tests" | |
source "$HOME"/.cargo/env | |
cd tests/pipico | |
cargo test # Probe UUID defined in .cargo/config.toml | |
STM32_Tests: | |
name: STM32F072RB Tests | |
runs-on: self-hosted | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Rust and probe-rs | |
run: | | |
apt-get install --yes clang curl git libudev-dev libssl-dev pkg-config python3-pip | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/probe-rs/probe-rs/releases/latest/download/probe-rs-tools-installer.sh | sh | |
source "$HOME"/.cargo/env | |
rustup toolchain install nightly --component rust-src | |
rustup target add thumbv6m-none-eabi | |
- name: STM32F072RB Tests | |
run: | | |
echo "Running STM32F072RB Tests" | |
source "$HOME"/.cargo/env | |
cd tests/stm32f072 | |
cargo test # Probe UUID defined in .cargo/config.toml |