2023-09-02 22:03:27 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: arm-none-eabi-gcc
|
|
|
|
uses: carlosperate/arm-none-eabi-gcc-action@v1
|
|
|
|
with:
|
|
|
|
release: '10.3-2021.10'
|
|
|
|
|
2023-09-06 05:16:42 +08:00
|
|
|
- name: Install Python dependencies
|
|
|
|
run: python -m pip install --upgrade pip crcmod
|
|
|
|
|
2023-09-02 22:03:27 +08:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Submodules
|
|
|
|
run: git submodule update --init --recursive --depth 1
|
|
|
|
|
|
|
|
- name: Make
|
|
|
|
run: make
|
|
|
|
|
|
|
|
- name: size
|
|
|
|
run: arm-none-eabi-size firmware
|
2023-09-02 22:35:41 +08:00
|
|
|
|
|
|
|
- name: 'Upload Artifact'
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: firmware
|
2023-09-06 05:16:42 +08:00
|
|
|
path: firmware*.bin
|
2023-09-02 22:35:41 +08:00
|
|
|
|