summaryrefslogtreecommitdiff
path: root/.github/actions/get_deps/action.yml
blob: ae9e7bbef802296c6064a831080dfc4788e1b64c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Get dependencies

inputs:
  arg:
    description: 'Arguments to get_deps.py'
    required: true

runs:
  using: "composite"
  steps:
    - name: Checkout pico-sdk for rp2040
      if: contains(inputs.arg, 'rp2040') || contains(inputs.arg, 'raspberry_pi_pico')
      uses: actions/checkout@v4
      with:
        repository: raspberrypi/pico-sdk
        ref: master
        path: pico-sdk

    - name: Linux dependencies
      if: runner.os == 'Linux'
      run: |
        sudo apt install -y ninja-build
      shell: bash

    - name: Get Dependencies
      run: |
        python3 tools/get_deps.py ${{ inputs.arg }}
        echo "PICO_SDK_PATH=${{ github.workspace }}/pico-sdk" >> $GITHUB_ENV
      shell: bash