diff --git a/.github/workflows/build-firmware.yaml b/.github/workflows/build-firmware.yaml index 9e6e715dd..bca524eb1 100644 --- a/.github/workflows/build-firmware.yaml +++ b/.github/workflows/build-firmware.yaml @@ -8,10 +8,32 @@ on: workflow_dispatch: jobs: + read-meta-info: + runs-on: ubuntu-latest + outputs: + short_board_name: ${{ steps.read_meta.outputs.SHORT_BOARD_NAME }} + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Read meta-info file with the board description + id: read_meta + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + run: | + echo "$(cat ./meta-info.env)" >> $GITHUB_OUTPUT + + - name: Debug output of the board name + run: | + echo "SHORT_BOARD_NAME = ${{ steps.read_meta.outputs.SHORT_BOARD_NAME }}" + call-workflow-passing-data: + needs: read-meta-info uses: rusefi/rusefi/.github/workflows/custom-board-build.yaml@master secrets: inherit permissions: contents: write with: - shortBoardName: paralela + shortBoardName: ${{ needs.read-meta-info.outputs.SHORT_BOARD_NAME }} + rusefi_dir: ext/rusefi + relative_board_dir: ../.. diff --git a/board.mk b/board.mk index 31c6982aa..a303cf8a6 100644 --- a/board.mk +++ b/board.mk @@ -2,7 +2,6 @@ BOARDINC += $(BOARD_DIR)/generated/controllers/generated BOARDCPPSRC = $(BOARD_DIR)/board_configuration.cpp -DDEFS += -DFIRMWARE_ID=\"Paralela\" SHORT_BOARD_NAME=paralela # reduce memory usage monitoring