split atmel-samd
instead of raspberrypi
This commit is contained in:
parent
932b10f551
commit
592fea6822
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@ -24,9 +24,9 @@ jobs:
|
|||||||
build-boards: ${{ steps.set-matrix.outputs.build-boards }}
|
build-boards: ${{ steps.set-matrix.outputs.build-boards }}
|
||||||
boards-aarch: ${{ steps.set-matrix.outputs.boards-aarch }}
|
boards-aarch: ${{ steps.set-matrix.outputs.boards-aarch }}
|
||||||
boards-arm: ${{ steps.set-matrix.outputs.boards-arm }}
|
boards-arm: ${{ steps.set-matrix.outputs.boards-arm }}
|
||||||
|
boards-atmel: ${{ steps.set-matrix.outputs.boards-atmel }}
|
||||||
boards-esp: ${{ steps.set-matrix.outputs.boards-esp }}
|
boards-esp: ${{ steps.set-matrix.outputs.boards-esp }}
|
||||||
boards-riscv: ${{ steps.set-matrix.outputs.boards-riscv }}
|
boards-riscv: ${{ steps.set-matrix.outputs.boards-riscv }}
|
||||||
boards-rpi: ${{ steps.set-matrix.outputs.boards-rpi }}
|
|
||||||
cp-version: ${{ steps.set-up-submodules.outputs.version }}
|
cp-version: ${{ steps.set-up-submodules.outputs.version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Dump GitHub context
|
- name: Dump GitHub context
|
||||||
@ -238,6 +238,16 @@ jobs:
|
|||||||
boards: ${{ needs.scheduler.outputs.boards-arm }}
|
boards: ${{ needs.scheduler.outputs.boards-arm }}
|
||||||
cp-version: ${{ needs.scheduler.outputs.cp-version }}
|
cp-version: ${{ needs.scheduler.outputs.cp-version }}
|
||||||
|
|
||||||
|
atmel:
|
||||||
|
needs: [scheduler, mpy-cross, tests]
|
||||||
|
if: ${{ needs.scheduler.outputs.boards-atmel != '[]' }}
|
||||||
|
uses: ./.github/workflows/build-boards.yml
|
||||||
|
secrets: inherit
|
||||||
|
with:
|
||||||
|
platform: arm
|
||||||
|
boards: ${{ needs.scheduler.outputs.boards-atmel }}
|
||||||
|
cp-version: ${{ needs.scheduler.outputs.cp-version }}
|
||||||
|
|
||||||
esp:
|
esp:
|
||||||
needs: [scheduler, mpy-cross, tests]
|
needs: [scheduler, mpy-cross, tests]
|
||||||
if: ${{ needs.scheduler.outputs.boards-esp != '[]' }}
|
if: ${{ needs.scheduler.outputs.boards-esp != '[]' }}
|
||||||
@ -257,13 +267,3 @@ jobs:
|
|||||||
platform: riscv
|
platform: riscv
|
||||||
boards: ${{ needs.scheduler.outputs.boards-riscv }}
|
boards: ${{ needs.scheduler.outputs.boards-riscv }}
|
||||||
cp-version: ${{ needs.scheduler.outputs.cp-version }}
|
cp-version: ${{ needs.scheduler.outputs.cp-version }}
|
||||||
|
|
||||||
rpi:
|
|
||||||
needs: [scheduler, mpy-cross, tests]
|
|
||||||
if: ${{ needs.scheduler.outputs.boards-rpi != '[]' }}
|
|
||||||
uses: ./.github/workflows/build-boards.yml
|
|
||||||
secrets: inherit
|
|
||||||
with:
|
|
||||||
platform: arm
|
|
||||||
boards: ${{ needs.scheduler.outputs.boards-rpi }}
|
|
||||||
cp-version: ${{ needs.scheduler.outputs.cp-version }}
|
|
||||||
|
@ -43,14 +43,14 @@ from shared_bindings_matrix import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
PORT_TO_ARCH = {
|
PORT_TO_ARCH = {
|
||||||
"atmel-samd": "arm",
|
"atmel-samd": "atmel",
|
||||||
"broadcom": "aarch",
|
"broadcom": "aarch",
|
||||||
"cxd56": "arm",
|
"cxd56": "arm",
|
||||||
"espressif": "esp",
|
"espressif": "esp",
|
||||||
"litex": "riscv",
|
"litex": "riscv",
|
||||||
"mimxrt10xx": "arm",
|
"mimxrt10xx": "arm",
|
||||||
"nrf": "arm",
|
"nrf": "arm",
|
||||||
"raspberrypi": "rpi",
|
"raspberrypi": "arm",
|
||||||
"stm": "arm",
|
"stm": "arm",
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ def set_output(name: str, value):
|
|||||||
|
|
||||||
|
|
||||||
def set_boards_to_build(build_all: bool):
|
def set_boards_to_build(build_all: bool):
|
||||||
if "mpy_cross" in last_failed_jobs or "tests" in last_failed_jobs:
|
if last_failed_jobs.get("mpy_cross") or last_failed_jobs.get("tests"):
|
||||||
build_all = True
|
build_all = True
|
||||||
|
|
||||||
# Get boards in json format
|
# Get boards in json format
|
||||||
@ -207,13 +207,12 @@ def set_boards_to_build(build_all: bool):
|
|||||||
break
|
break
|
||||||
|
|
||||||
# Split boards by architecture.
|
# Split boards by architecture.
|
||||||
arch_to_boards = {"aarch": [], "arm": [], "esp": [], "riscv": [], "rpi": []}
|
arch_to_boards = {"aarch": [], "arm": [], "atmel": [], "esp": [], "riscv": []}
|
||||||
|
|
||||||
# Append previously failed boards
|
# Append previously failed boards
|
||||||
for arch in arch_to_boards:
|
for arch in arch_to_boards:
|
||||||
arch_to_job = f"build-{arch}"
|
if arch in last_failed_jobs:
|
||||||
if arch_to_job in last_failed_jobs:
|
for board in last_failed_jobs[arch]:
|
||||||
for board in last_failed_jobs[arch_to_job]:
|
|
||||||
if not board in boards_to_build:
|
if not board in boards_to_build:
|
||||||
boards_to_build.append(board)
|
boards_to_build.append(board)
|
||||||
|
|
||||||
@ -238,7 +237,7 @@ def set_boards_to_build(build_all: bool):
|
|||||||
|
|
||||||
def set_docs_to_build(build_doc: bool):
|
def set_docs_to_build(build_doc: bool):
|
||||||
if not build_doc:
|
if not build_doc:
|
||||||
if "build-doc" in last_failed_jobs:
|
if last_failed_jobs.get("build-doc"):
|
||||||
build_doc = True
|
build_doc = True
|
||||||
else:
|
else:
|
||||||
doc_pattern = re.compile(
|
doc_pattern = re.compile(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user