2024-05-10 18:55:43 +07:00
|
|
|
name: Get dependencies
|
2024-05-09 20:43:46 +07:00
|
|
|
|
|
|
|
inputs:
|
2024-05-10 18:55:43 +07:00
|
|
|
arg:
|
2024-05-14 12:44:36 +07:00
|
|
|
description: 'Arguments to get_deps.py'
|
2024-05-09 20:43:46 +07:00
|
|
|
required: true
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Checkout pico-sdk for rp2040
|
2024-05-10 18:55:43 +07:00
|
|
|
if: contains(inputs.arg, 'rp2040') || contains(inputs.arg, 'raspberry_pi_pico')
|
2024-05-09 20:43:46 +07:00
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
repository: raspberrypi/pico-sdk
|
2024-11-21 10:40:58 +07:00
|
|
|
ref: master
|
2024-05-09 20:43:46 +07:00
|
|
|
path: pico-sdk
|
|
|
|
|
2024-05-10 18:55:43 +07:00
|
|
|
- name: Linux dependencies
|
|
|
|
if: runner.os == 'Linux'
|
2024-05-09 20:43:46 +07:00
|
|
|
run: |
|
|
|
|
sudo apt install -y ninja-build
|
2024-05-10 18:55:43 +07:00
|
|
|
shell: bash
|
|
|
|
|
|
|
|
- name: Get Dependencies
|
|
|
|
run: |
|
|
|
|
python3 tools/get_deps.py ${{ inputs.arg }}
|
|
|
|
echo "PICO_SDK_PATH=${{ github.workspace }}/pico-sdk" >> $GITHUB_ENV
|
2024-05-09 20:43:46 +07:00
|
|
|
shell: bash
|