805bb886c0
* Boot: switch to DFU routines. Implements #132 part 1 of 2. * Boot: boot to DFU shortcut, hard reset USB on each boot. Implements #132 part 2 of 2. * Deploy scripts: fix path for deploy dfu. * Bootloader: initial version. Target_f2: rebase, update deployment scripts. * Bootloader: cleanup, refactor switch2 proc. Readme,wiki: document bootloader. * Wiki: deploy symlinks as files, bootloader info. * Target_f2: valid flash size in linker script. * Github CI: bootloader build and artifacts. * Bootloader: rename platforms to targets. * Bootloader: change dfu/os colors. * disable set -e * lint code * add bootloader testing page Co-authored-by: Aleksandr Kutuzov <aku@plooks.com> Co-authored-by: aanper <mail@s3f.ru>
81 lines
2.1 KiB
YAML
81 lines
2.1 KiB
YAML
name: 'CI'
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths-ignore:
|
|
- 'wiki/**'
|
|
- 'wiki_static/**'
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- uses: satackey/action-docker-layer-caching@v0.0.8
|
|
continue-on-error: true
|
|
with:
|
|
key: docker-cache-${{ hashFiles('docker/**') }}-{hash}
|
|
restore-keys: docker-cache-${{ hashFiles('docker/**') }}-
|
|
- name: Build docker image
|
|
uses: ./.github/actions/docker
|
|
|
|
- name: Check syntax
|
|
uses: ./.github/actions/docker
|
|
continue-on-error: true
|
|
with:
|
|
run: /syntax_check.sh
|
|
|
|
- name: Build target_lo in docker
|
|
uses: ./.github/actions/docker
|
|
with:
|
|
run: make -C target_lo
|
|
|
|
- name: Build target_f1 in docker
|
|
uses: ./.github/actions/docker
|
|
with:
|
|
run: make -C target_f1
|
|
|
|
- name: Publish target_f1 artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: target_f1
|
|
path: |
|
|
target_f1/build/target_prod.elf
|
|
target_f1/build/target_prod.bin
|
|
target_f1/build/target_prod.hex
|
|
if-no-files-found: error
|
|
|
|
- name: Build target_f2 in docker
|
|
uses: ./.github/actions/docker
|
|
with:
|
|
run: make -C target_f2
|
|
|
|
- name: Publish target_f2 artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: target_f2
|
|
path: |
|
|
target_f2/build/target_prod.elf
|
|
target_f2/build/target_prod.bin
|
|
target_f2/build/target_prod.hex
|
|
if-no-files-found: error
|
|
|
|
- name: Build bootloader in docker
|
|
uses: ./.github/actions/docker
|
|
with:
|
|
run: make -C bootloader
|
|
|
|
- name: Publish bootloader artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: bootloader
|
|
path: |
|
|
bootloader/.obj/bootloader.elf
|
|
bootloader/.obj/bootloader.bin
|
|
bootloader/.obj/bootloader.hex
|
|
if-no-files-found: error
|