mirror of
https://github.com/Ralim/IronOS-Meta.git
synced 2025-04-15 11:27:48 +00:00
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
container:
|
|
image: alpine:3.15
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- args: ""
|
|
model: "miniware"
|
|
- args: "-p"
|
|
model: "pinecil"
|
|
fail-fast: true
|
|
|
|
steps:
|
|
- name: Install dependencies (apk)
|
|
run: apk add --no-cache git python3 py3-pip zlib py3-pillow
|
|
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
|
|
- name: prep
|
|
run: mkdir -p /tmp/${{ matrix.model }}
|
|
|
|
- name: build logo's
|
|
run: cd Bootup\ Logos && ./run.sh /tmp/${{ matrix.model }}/ ${{matrix.args}}
|
|
|
|
- name: build logo's
|
|
run: cd Bootup\ Logos && python3 img2logo.py -E dummy.png /tmp/${{ matrix.model }}/
|
|
|
|
- name: Archive artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ${{ matrix.model }}
|
|
path: |
|
|
/tmp/${{ matrix.model }}/*.hex
|
|
/tmp/${{ matrix.model }}/*.dfu
|
|
if-no-files-found: error
|