1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
19089: .github/tools-buildtest: factorize and parallelize using matrix strategy r=aabadie a=aabadie



Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
This commit is contained in:
bors[bot] 2023-01-05 12:37:30 +00:00 committed by GitHub
commit 1be8e56852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 64 deletions

View File

@ -15,69 +15,53 @@ on:
jobs: jobs:
tools-build: tools-build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 16
matrix:
tools: # List of tools sorted by name in alphabetical order
- name: benchmark_udp
path: dist/tools
- name: bossa-1.8
path: dist/tools
- name: bossa-1.9
path: dist/tools
- name: bossa-nrf52
path: dist/tools
- name: calc_spi_scalers
path: cpu/kinetis/dist
- name: clk_conf
path: cpu/stm32/dist
- name: edbg
path: dist/tools
- name: ethos
path: dist/tools
- name: fixdep
path: dist/tools
- name: flatc
path: dist/tools
- name: lpc2k_pgm
path: dist/tools
- name: mosquitto_rsmb
path: dist/tools
- name: riotboot_serial
path: dist/tools
- name: setsid
path: dist/tools
- name: uhcpd
path: dist/tools
- name: zep_dispatch
path: dist/tools
steps: steps:
- uses: actions/checkout@main - uses: actions/checkout@main
- name: Build flatc standalone - name: Build ${{ matrix.tools.name }} in ${{ matrix.tools.path }}
uses: aabadie/riot-action@main uses: aabadie/riot-action@main
with: with:
cmd: make -C dist/tools/flatc cmd: make -C ${{ matrix.tools.path }}/${{ matrix.tools.name }}
- name: Build mosquitto_rsmb standalone tools-build-success:
uses: aabadie/riot-action@main # this is only run if all jobs in tools-build succeeded
with: needs: tools-build
cmd: make -C dist/tools/mosquitto_rsmb runs-on: ubuntu-latest
- name: Build bossa-1.8 standalone steps:
uses: aabadie/riot-action@main - name: tools-build succeeded
with: run: exit 0
cmd: make -C dist/tools/bossa-1.8
- name: Build bossa-1.9 standalone
uses: aabadie/riot-action@main
with:
cmd: make -C dist/tools/bossa-1.9
- name: Build bossa-nrf52 standalone
uses: aabadie/riot-action@main
with:
cmd: make -C dist/tools/bossa-nrf52
- name: Build edbg standalone
uses: aabadie/riot-action@main
with:
cmd: make -C dist/tools/edbg
- name: Build setsid standalone
uses: aabadie/riot-action@main
with:
cmd: make -C dist/tools/setsid
- name: Build ethos
uses: aabadie/riot-action@main
with:
cmd: make -C dist/tools/ethos
- name: Build uhcpd
uses: aabadie/riot-action@main
with:
cmd: make -C dist/tools/uhcpd
- name: Build UDP Benchmark
uses: aabadie/riot-action@main
with:
cmd: make -C dist/tools/benchmark_udp
- name: Build stm32 clk_conf
uses: aabadie/riot-action@main
with:
cmd: make -C cpu/stm32/dist/clk_conf
- name: Build kinetis calc_spi_scalers
uses: aabadie/riot-action@main
with:
cmd: make -C cpu/kinetis/dist/calc_spi_scalers
- name: Build fixdep tool
uses: aabadie/riot-action@main
with:
cmd: make -C dist/tools/fixdep
- name: Build lpc2k_pgm tool
uses: aabadie/riot-action@main
with:
cmd: make -C dist/tools/lpc2k_pgm
- name: Build riotboot_serial tool
uses: aabadie/riot-action@main
with:
cmd: make -C dist/tools/riotboot_serial
- name: Build ZEP dispatcher & topology generator
uses: aabadie/riot-action@main
with:
cmd: make -C dist/tools/zep_dispatch

View File

@ -2,7 +2,7 @@
# (listed in same order as in the repo's branch protection settings) # (listed in same order as in the repo's branch protection settings)
pr_status = [ pr_status = [
"python-tests", "python-tests",
"tools-build", "tools-build-success",
"check-labels", "check-labels",
"static-tests", "static-tests",
"check-commits (commit-msg)", "check-commits (commit-msg)",
@ -15,7 +15,7 @@ pr_status = [
status = [ status = [
"Murdock", "Murdock",
"static-tests", "static-tests",
"tools-build", "tools-build-success",
] ]
# Number of project members who must approve the PR (using GitHub Reviews) # Number of project members who must approve the PR (using GitHub Reviews)