Skip to content

Commit

Permalink
Merge pull request #3 from chuckwagoncomputing/update-script
Browse files Browse the repository at this point in the history
Update for new worlflow
  • Loading branch information
rusefillc authored Feb 18, 2024
2 parents 1bc4a39 + 649d016 commit 7ce9690
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 29 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/build-firmware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,8 @@ 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: ${{ needs.read-meta-info.outputs.SHORT_BOARD_NAME }}
rusefi_dir: ext/rusefi
relative_board_dir: ../..
6 changes: 2 additions & 4 deletions compile_firmware.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/bash

#!/usr/bin/env bash
cd ext/rusefi/firmware/

bash config/boards/common_script.sh ../../../../.. ARCH_STM32F4
bash bin/compile.sh ../../../meta-info.env
2 changes: 1 addition & 1 deletion ext/rusefi
Submodule rusefi updated 300 files
1 change: 1 addition & 0 deletions meta-info.env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
SHORT_BOARD_NAME=XXX
PROJECT_CPU=ARCH_STM32F4

0 comments on commit 7ce9690

Please sign in to comment.