Skip to content

Commit cec7e31

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 cec7e31

3 files changed

Lines changed: 16 additions & 49 deletions

File tree

.github/workflows/hardware-rp5.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,22 @@ on:
1515
jobs:
1616
build-and-run-linux:
1717
name: Build and Run
18-
runs-on: "ocre-raspberrypi"
18+
runs-on: raspberrypi-runner
1919
steps:
20+
- name: Clean other workspace
21+
run: rm -rf ../.west
22+
23+
- name: Clean workspace
24+
run: find . -name . -o -prune -exec rm -rf -- {} +
2025

2126
- name: Checkout
22-
uses: actions/checkout@v4
27+
uses: actions/checkout@v6
2328
with:
2429
submodules: true
2530

31+
- name: Configure git safe directory
32+
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
33+
2634
- name: Delete build directory
2735
run: rm -rf build
2836

.github/workflows/linux.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -121,44 +121,3 @@ jobs:
121121
echo "[ERROR] Expected log not found: $EXPECTED_LOG"
122122
exit 1
123123
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: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ jobs:
8484
with:
8585
devcontainer-tag: ${{ needs.zephyr-devcontainer.outputs.devcontainer-tag }}
8686

87-
# hardware-raspberry_pi:
88-
# name: Hardware Raspberry Pi 5
89-
# # needs:
90-
# # - linux
91-
# uses: ./.github/workflows/hardware-rp5.yml
92-
# secrets: inherit
87+
hardware-raspberry_pi:
88+
name: Hardware Raspberry Pi 5
89+
needs:
90+
- linux
91+
uses: ./.github/workflows/hardware-rp5.yml
92+
secrets: inherit

0 commit comments

Comments
 (0)