2023-02-22 09:41:38 -05:00
|
|
|
name: Fetch port deps
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
board:
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
|
|
|
outputs:
|
|
|
|
port:
|
|
|
|
value: ${{ steps.board-to-port.outputs.port }}
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
|
|
|
- name: Board to port
|
|
|
|
id: board-to-port
|
|
|
|
run: |
|
|
|
|
PORT=$(find ports/*/boards/ -type d -name ${{ inputs.board }} | sed 's/^ports\///g;s/\/boards.*//g')
|
|
|
|
if [ -z $PORT ]; then (exit 1); else echo >> $GITHUB_OUTPUT "port=$PORT"; fi
|
|
|
|
shell: bash
|
|
|
|
|
2023-03-04 00:02:19 -05:00
|
|
|
- name: Set up broadcom
|
|
|
|
if: steps.board-to-port.outputs.port == 'broadcom'
|
|
|
|
uses: ./.github/actions/deps/ports/broadcom
|
|
|
|
|
|
|
|
- name: Set up espressif
|
2023-02-22 09:41:38 -05:00
|
|
|
if: steps.board-to-port.outputs.port == 'espressif'
|
|
|
|
uses: ./.github/actions/deps/ports/espressif
|
2023-02-23 17:43:38 -05:00
|
|
|
|
2023-03-04 00:02:19 -05:00
|
|
|
- name: Set up litex
|
|
|
|
if: steps.board-to-port.outputs.port == 'litex'
|
|
|
|
uses: ./.github/actions/deps/ports/litex
|
|
|
|
|
|
|
|
- name: Set up nrf
|
2023-02-23 17:43:38 -05:00
|
|
|
if: steps.board-to-port.outputs.port == 'nrf'
|
|
|
|
uses: ./.github/actions/deps/ports/nrf
|