Skip to content

Draft: Hardware Tests in CI #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 28 commits into
base: main
Choose a base branch
from
Draft

Draft: Hardware Tests in CI #12

wants to merge 28 commits into from

Conversation

xarantolus
Copy link
Contributor

This adds, together with the https://github.com/OsirisRTOS/hardware-ci repo, a way to run hardware tests in CI.
Basically, one sets up the other repo on a server that has one or multiple STM chips attached, and makes them available in CI.

Then you can create a GitHub Action job:

  hardware-test-stm32-nucleo-l4r5zi:
    name: Hardware test for the STM32 Nucleo L4R5ZI
    # needs: [build-stm32-nucleo-l4r5zi]
    runs-on: stm32l4r5zi
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          submodules: recursive
      # TODO: download build artifacts
      - name: Run hardware test
        # See https://github.com/OsirisRTOS/hardware-ci for more information
        run: |
          SERIAL_ID="$(board_info serial stm32l4r5zi)"
          echo "Working with chip $SERIAL_ID"

          st-flash --serial "$SERIAL_ID" reset

          board_info print --serial "$SERIAL_ID" --flash-size

We can run on a specific type of chip via the runs-on label, and get a specific chip serial ID via the board_info serial stm32l4r5zi command. board_info also supports printing details about a specific chip, like flash size, page size etc.

This PR should be merged after #8

Copy link

github-actions bot commented Feb 16, 2025

LCOV of commit be334b4 during Osiris CI #109

This pull request changes total coverage +0.04% (3.73% -> 3.77%) for this diff

Summary coverage rate:
  lines......: 3.8% (81 of 2147 lines)
  functions..: 0.2% (1 of 441 functions)
  branches...: no data found

Files changed coverage rate: n/a

@xarantolus xarantolus linked an issue Feb 17, 2025 that may be closed by this pull request
7 tasks
@xarantolus xarantolus marked this pull request as draft February 20, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

General: Hardware CI
2 participants