Skip to content

Commit 378b782

Browse files
committed
Introduce RaspberryPi runner into linux tests
Re-introduced the raspberry pi runner into the linux tests after merging the changes from main. Signed-off-by: Matthew Gee <mgee@iol.unh.edu>
1 parent 68f55b4 commit 378b782

3 files changed

Lines changed: 6 additions & 113 deletions

File tree

.github/workflows/hardware-rp5.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/linux.yml

Lines changed: 5 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ on:
1717
default: latest
1818
required: false
1919
type: string
20-
2120
jobs:
2221
build-and-run-linux:
22+
strategy:
23+
matrix:
24+
runner: [ ubuntu-24.04, raspberrypi-runner ]
2325
name: Build and Run
24-
runs-on: ubuntu-24.04
26+
runs-on: ${{matrix.runner}}
2527
container:
2628
image: ghcr.io/${{ github.repository }}/devcontainer-linux:${{ inputs.devcontainer-tag }}
29+
options: ${{matrix.options}}
2730
steps:
2831
- name: Clean other workspace
2932
run: rm -rf ../.west
@@ -121,44 +124,3 @@ jobs:
121124
echo "[ERROR] Expected log not found: $EXPECTED_LOG"
122125
exit 1
123126
fi
124-
125-
post-code-coverage:
126-
name: Post Code Test Coverage
127-
runs-on: ["self-hosted", "build-server"]
128-
container:
129-
image: ghcr.io/${{ github.repository }}/devcontainer-linux:${{ inputs.devcontainer-tag }}
130-
options: --user 1000:1000
131-
steps:
132-
- name: Clean other workspace
133-
run: rm -rf ../.west
134-
135-
- name: Clean workspace
136-
run: find . -name . -o -prune -exec rm -rf -- {} +
137-
138-
- name: Checkout
139-
uses: actions/checkout@v4
140-
with:
141-
submodules: true
142-
143-
- name: Delete build directory
144-
run: rm -rf build
145-
146-
- name: Configure (test coverage)
147-
run: mkdir build && cd build && cmake ../tests/coverage
148-
149-
- name: Build and run (test coverage)
150-
working-directory: build
151-
run: make coverage report.md
152-
153-
- name: Upload coverage report
154-
uses: actions/upload-artifact@v4
155-
with:
156-
name: ocre-coverage
157-
include-hidden-files: true
158-
path: build/coverage
159-
160-
- name: Report code coverage
161-
uses: marocchino/sticky-pull-request-comment@v3
162-
with:
163-
GITHUB_TOKEN: ${{ secrets.TOKEN_WRITE_PR }}
164-
path: build/report.md

.github/workflows/main.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,4 @@ jobs:
8282
uses: ./.github/workflows/hardware-bu585.yml
8383
secrets: inherit
8484
with:
85-
devcontainer-tag: ${{ needs.zephyr-devcontainer.outputs.devcontainer-tag }}
86-
87-
# hardware-raspberry_pi:
88-
# name: Hardware Raspberry Pi 5
89-
# # needs:
90-
# # - linux
91-
# uses: ./.github/workflows/hardware-rp5.yml
92-
# secrets: inherit
85+
devcontainer-tag: ${{ needs.zephyr-devcontainer.outputs.devcontainer-tag }}

0 commit comments

Comments
 (0)