Skip to content

[Feature] Support build parameters #58

@spuder

Description

@spuder

As a user who builds esphome using build parameters.
I need the ability to provide those build parameters to the GitHub actions.

Example

Production boards are built using different pin assignments than the development boards.

	esphome \
		-s name foobar \
		-s rfid1_miso_pin "GPIO37" \
		-s rfid1_clk_pin "GPIO36" \
		-s rfid1_mosi_pin "GPIO35" \
		-s rfid1_ss_pin "GPIO34" \
		-s rfid1_spi_interface "spi2" \
		compile config.yaml

Desired outcome

      - name: Build ESPHome firmware
        uses: esphome/[email protected]
        with:
          yaml-file: firmware/config.yaml
          complete-manifest: true
          build_parameters: # <------- add build parameters
            - name: foobar
            - rfid1_miso_pin: GPIO37
            - rfid1_clk_pin: GPIO36
            - rfid1_mosi_pin: GPIO35
            - rfid1_ss_pin: GPIO34

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions