How to preform an action in a different folder with uses Github actions

390 views Asked by At

Trying to get Github actions working for a specific workflow involving Zephyr and West. Currently, I have West initializing via this marketplace plug-in with the Docker version to save time. My Zephyr project runs on an nrf9160 chip and builds locally by running west build -b nrf9160dk_sgnns in the project folder.

For now, everything works up until the building part, which(I believe) has to call West in the project folder and not in the parent folder. However, how do I chain the events in this case? Currently, I call West build like this

  - name: West Build
        uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest'
        id: west-build
        with:
          args: |
            'cd " project "'
            'build "-b nrf9160dk_sgnns"'

However, this results in an error if I do it like the action suggest the system can't find my board, thus how could I perform this build action in my project folder correctly?

I tried setting the working-directory however this results in the error working-directory cannot be used with uses, with

0

There are 0 answers