forked from me/IronOS-Meta
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
container:
|
|
image: alpine:3.15
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- model: "miniware"
|
|
- model: "pinecilv1"
|
|
- model: "pinecilv2"
|
|
- model: "mhp30"
|
|
- model: "ts101"
|
|
- model: "s60"
|
|
fail-fast: true
|
|
|
|
steps:
|
|
- name: Install dependencies (apk)
|
|
run: apk add --no-cache git python3 py3-pip zlib py3-pillow
|
|
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
|
|
- name: prep
|
|
run: mkdir -p /tmp/${{ matrix.model }}
|
|
|
|
- name: build all files for the device
|
|
run: cd Bootup\ Logos && ./run.sh /tmp/${{ matrix.model }}/ -m ${{matrix.model}}
|
|
|
|
- name: build logo erase file
|
|
run: cd Bootup\ Logos && python3 img2logo.py -E erase_stored_image /tmp/${{ matrix.model }}/ -m ${{matrix.model}}
|
|
|
|
- name: Archive artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: ${{ matrix.model }}
|
|
path: |
|
|
/tmp/${{ matrix.model }}/*.hex
|
|
/tmp/${{ matrix.model }}/*.dfu
|
|
if-no-files-found: error
|