Sequre S99 Support (#29) #100
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
container: | |
image: alpine:3.15 | |
strategy: | |
matrix: | |
model: ["TS100", "TS80", "TS80P", "MHP30", "S60P", "S60", "S99"] | |
fail-fast: true | |
steps: | |
- name: Install dependencies (apk) | |
run: apk add --no-cache gcc-arm-none-eabi newlib-arm-none-eabi findutils make git python3 py3-pip | |
- name: Install dependencies (py) | |
run: pip3 install IntelHex | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: prep | |
run: mkdir -p /tmp/${{ matrix.model }} | |
- name: build runtime ${{ matrix.model }} | |
run: make all build_type=runtime model=${{ matrix.model }} | |
- name: cp outputs | |
run: cp build/*.hex build/*.dfu /tmp/${{ matrix.model }} | |
- name: build bootloader ${{ matrix.model }} | |
run: make clean && make all build_type=bootloader model=${{ matrix.model }} | |
- name: cp outputs | |
run: cp build/*.hex build/*.dfu /tmp/${{ matrix.model }} | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.model }} | |
path: | | |
/tmp/${{ matrix.model }}/*.hex | |
/tmp/${{ matrix.model }}/*.dfu | |
if-no-files-found: error |