Skip to content

Remove WebUSB, use Web Serial only #2

Remove WebUSB, use Web Serial only

Remove WebUSB, use Web Serial only #2

Workflow file for this run

name: Build Firmware
on:
push:
branches: [main]
paths:
- 'firmware/**'
- '.github/workflows/firmware.yml'
pull_request:
branches: [main]
paths:
- 'firmware/**'
- '.github/workflows/firmware.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install ARM toolchain
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: '13.2.Rel1'
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build
- name: Configure
run: |
cd firmware
mkdir build
cd build
cmake .. -G Ninja
- name: Build
run: |
cd firmware/build
ninja
- name: Upload firmware UF2
uses: actions/upload-artifact@v4
with:
name: storage-bridge-firmware
path: firmware/build/storage_bridge.uf2
- name: Upload bundled web app
run: |
npm install -g esbuild
python3 tools/bundle.py
- name: Upload web app artifact
uses: actions/upload-artifact@v4
with:
name: storage-bridge-webapp
path: |
web/dist/storage-bridge.html
web/dist/index.html