fw-custom-example/.github/workflows/build-firmware.yaml

40 lines
1.0 KiB
YAML
Raw Normal View History

2023-12-04 06:42:35 -08:00
name: Create Board Firmware
on:
2024-01-01 13:59:23 -08:00
schedule:
- cron: '10 17 * * *' # build fresh every 5:10 PM
2023-12-04 06:42:35 -08:00
push:
pull_request:
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 }}"
2023-12-04 06:42:35 -08:00
call-workflow-passing-data:
needs: read-meta-info
2023-12-04 06:42:35 -08:00
uses: rusefi/rusefi/.github/workflows/custom-board-build.yaml@master
secrets: inherit
permissions:
contents: write
with:
shortBoardName: ${{ needs.read-meta-info.outputs.SHORT_BOARD_NAME }}
rusefi_dir: ext/rusefi
relative_board_dir: ../..