|
17 | 17 | default: latest |
18 | 18 | required: false |
19 | 19 | type: string |
20 | | - |
21 | 20 | jobs: |
22 | 21 | build-and-run-linux: |
| 22 | + strategy: |
| 23 | + matrix: |
| 24 | + runner: [ ubuntu-24.04, raspberrypi-runner ] |
23 | 25 | name: Build and Run |
24 | | - runs-on: ubuntu-24.04 |
| 26 | + runs-on: ${{matrix.runner}} |
25 | 27 | container: |
26 | 28 | image: ghcr.io/${{ github.repository }}/devcontainer-linux:${{ inputs.devcontainer-tag }} |
| 29 | + options: ${{matrix.options}} |
27 | 30 | steps: |
28 | 31 | - name: Clean other workspace |
29 | 32 | run: rm -rf ../.west |
@@ -121,44 +124,3 @@ jobs: |
121 | 124 | echo "[ERROR] Expected log not found: $EXPECTED_LOG" |
122 | 125 | exit 1 |
123 | 126 | 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 |
0 commit comments