Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Target multiple paths (RDT-808) #45

Open
nopnop2002 opened this issue Jun 8, 2024 · 2 comments
Open

[Question] Target multiple paths (RDT-808) #45

nopnop2002 opened this issue Jun 8, 2024 · 2 comments

Comments

@nopnop2002
Copy link

nopnop2002 commented Jun 8, 2024

I have multiple projects that use one component.

project home
 - component
 - path1
   -  CMakeLists.txt
   -  sdkconfig
   -  main
     - CMakeLists.txt
     - main.c
 - path2
   -  CMakeLists.txt
   -  sdkconfig
   -  main
     - CMakeLists.txt
     - main.c
 - path3
   -  CMakeLists.txt
   -  sdkconfig
   -  main
     - CMakeLists.txt
     - main.c

How can I target multiple paths?

I tried the following, but an error occurred.

      matrix:
        idf_version:
          - release-v4.4
          - release-v5.0
          - release-v5.1
        idf_target:
          - esp32
          - esp32s2
        idf_path:
          - path1
          - path2
          - path3

    runs-on: ubuntu-latest
    steps:
    - name: Checkout repo
      uses: actions/checkout@v4
      with:
        submodules: 'recursive'
    - name: Build Application with ESP-IDF
      uses: espressif/esp-idf-ci-action@v1
      with:
        esp_idf_version: ${{ matrix.idf_version }}
        target: ${{ matrix.idf_target }}
        path: ${{ matrix.idf_path }}
@github-actions github-actions bot changed the title Target multiple paths Target multiple paths (RDT-808) Jun 8, 2024
@nopnop2002 nopnop2002 changed the title Target multiple paths (RDT-808) [Question] Target multiple paths (RDT-808) Jun 8, 2024
@kumekay
Copy link
Collaborator

kumekay commented Jun 10, 2024

@nopnop2002 I cannot find any issues in your config just by looking at it.
What kind of error has occurred? Please share the logs.

@nopnop2002
Copy link
Author

nopnop2002 commented Jun 10, 2024

@kumekay

I used this repository for test.
I think you can fork my repository and test it.
https://github.com/nopnop2002/esp-idf-DFPlayerMini

This is my espidf-compile.yml:

name: esp-idf-ci-action

on:
  pull_request:
    paths:
      - "main/**"
      - "components/**"

  push:
    paths:
      - "main/**"
      - "components/**"

  workflow_dispatch:
  repository_dispatch:

jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        idf_version:
          - release-v4.4
          - release-v5.2
        idf_target:
          - esp32
          - esp32s2
          - esp32c3
          - esp32s3
        idf_path:
          - GetStarted
          - PlayWithGpio
          - PlayWithCron

    runs-on: ubuntu-latest
    steps:
    - name: Checkout repo
      uses: actions/checkout@v4
      with:
        submodules: 'recursive'
    - name: Build Application with ESP-IDF
      uses: espressif/esp-idf-ci-action@v1
      with:
        esp_idf_version: ${{ matrix.idf_version }}
        target: ${{ matrix.idf_target }}
        path: ${{ matrix.idf_path }}

This is log:

esp-idf-ci-action2

esp-idf-ci-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants