fwk: implement the battery extender feature #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build hx30 firmware | |
on: [push, workflow_dispatch] | |
jobs: | |
build: | |
name: Build hx30 | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: install toolchain | |
run: sudo apt install gcc-arm-none-eabi libftdi1-dev | |
# Checks out a copy of your repository on the ubuntu-latest machine | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: build hx30 board | |
env: | |
BOARD: hx30 | |
run: | | |
make -j BOARD=$BOARD CROSS_COMPILE=arm-none-eabi- | |
echo Built $BOARD ec | |
- name: file sha256 | |
run: sha256sum build/hx30/ec.bin | |
- name: generate artifact version | |
run: | | |
echo "VERSIONINFO=$(date -u +'%Y-%m-%d-%H-%M-%S')_$GITHUB_SHA" >> $GITHUB_ENV | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: hx30.${{ env.VERSIONINFO }}.bin | |
path: build/hx30/ec.bin |