Fix hardcoded value #51
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 binaries | |
on: | |
- push | |
- workflow_dispatch | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup arm-none-eabi-gcc | |
uses: carlosperate/arm-none-eabi-gcc-action@v1 | |
with: | |
release: 11.2-2022.02 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Build libopencm3 | |
run: make lib | |
- name: Make main binary | |
run: make -C src | |
- name: Make bootloader | |
run: make -C bootloader | |
- name: Consolidate binaries | |
run: | | |
mkdir dist | |
cp src/main.elf dist/ | |
cp src/main.bin dist/ | |
cp bootloader/usb_dfu.bin dist/ | |
- name: Archive produced binaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sbv4-binaries | |
path: dist/* |