forked from SynthstromAudible/DelugeFirmware
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1.53 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
on:
push:
branches:
- 'community'
- 'synthstrom-official'
pull_request:
branches:
- 'community'
jobs:
build:
name: Build ${{ matrix.profile }}-${{ matrix.hardware }}
strategy:
matrix:
profile: [ 'debug', 'release' ]
hardware: [ 'oled', '7seg' ]
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v3
- name: Fetch container image
run: |
docker pull ghcr.io/bobtwinkles/deluge-ci-images:v$(cat toolchain/REQUIRED_VERSION)
- name: Run build
run: |
docker run --rm \
--user=$(id --user):$(id --group) \
-v $(pwd):/src \
ghcr.io/bobtwinkles/deluge-ci-images:v$(cat toolchain/REQUIRED_VERSION) \
--e2_target=dbt-build-${{ matrix.profile }}-${{ matrix.hardware }}
- name: Publish built firmware (bin)
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.profile }}-${{ matrix.hardware }}.bin
path: dbt-build-${{ matrix.profile }}-${{ matrix.hardware }}/Deluge-${{ matrix.profile }}-${{ matrix.hardware }}.bin
if-no-files-found: error
retention-days: 5
- name: Publish built firmware (elf)
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.profile }}-${{ matrix.hardware }}.elf
path: dbt-build-${{ matrix.profile }}-${{ matrix.hardware }}/Deluge-${{ matrix.profile }}-${{ matrix.hardware }}.elf
if-no-files-found: error
retention-days: 5