Skip to content

add: TinyUSB demo setup #104

add: TinyUSB demo setup

add: TinyUSB demo setup #104

name: Build firmware
on:
push:
paths:
- 'device/firmware/**'
workflow_dispatch:
jobs:
build:
name: Build FSK-EEM firmware
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: check toolchain cache
id: toolchain-cache
uses: actions/cache@v4
with:
path: toolchain/arm-none-eabi
key: arm-none-eabi
- name: download and extract toolchain
if: steps.toolchain-cache.outputs.cache-hit != 'true'
run: |
url="https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz?rev=e434b9ea4afc4ed7998329566b764309&hash=CA590209F5774EE1C96E6450E14A3E26"
mkdir toolchain
curl -L $url | tar -xJf - -C toolchain
mv toolchain/`ls toolchain` toolchain/arm-none-eabi
- name: load tinyusb
run: git submodule update
- name: build firmware
run: |
cd device/firmware
make GCC_PATH=../../toolchain/arm-none-eabi/bin
- uses: actions/upload-artifact@v4
with:
name: firmware
path: device/firmware/build/firmware.*