diff options
| author | HiFiPhile <[email protected]> | 2024-05-11 12:44:16 +0200 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2024-05-11 12:44:16 +0200 |
| commit | 33882b3e89ead1d8b27e858ac8a932b4cbb9b165 (patch) | |
| tree | 6b4bac21569d9c01cb027ca7cc30068fbf1dd0aa /.github/actions/setup_toolchain | |
| parent | 9ce44db56f145d2efeec6b67d0786230c1a735c4 (diff) | |
| parent | d707ea56b47e2fbbe5eaa4854a427a3a7873dea3 (diff) | |
Merge remote-tracking branch 'remotes/tinyusb/master' into rx_fb
Diffstat (limited to '.github/actions/setup_toolchain')
| -rw-r--r-- | .github/actions/setup_toolchain/action.yml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/.github/actions/setup_toolchain/action.yml b/.github/actions/setup_toolchain/action.yml index b59ece116..e6c79e7dd 100644 --- a/.github/actions/setup_toolchain/action.yml +++ b/.github/actions/setup_toolchain/action.yml @@ -8,6 +8,11 @@ inputs: required: false type: string +outputs: + build_option: + description: 'Build option for the toolchain e.g --toolchain clang' + value: ${{ steps.set-toolchain-option.outputs.build_option }} + runs: using: "composite" steps: @@ -19,7 +24,7 @@ runs: - name: Pull ESP-IDF docker if: inputs.toolchain == 'esp-idf' - run: docker pull espressif/idf:latest + run: docker pull espressif/idf:${{ inputs.toolchain_url }} shell: bash - name: Download Toolchain @@ -29,3 +34,14 @@ runs: uses: ./.github/actions/setup_toolchain/download with: toolchain_url: ${{ inputs.toolchain_url }} + + - name: Set toolchain option + id: set-toolchain-option + run: | + BUILD_OPTION="" + if [[ "${{ inputs.toolchain }}" == *"clang"* ]]; then + BUILD_OPTION="--toolchain clang" + fi + echo "build_option=$BUILD_OPTION" + echo "build_option=$BUILD_OPTION" >> $GITHUB_OUTPUT + shell: bash |
