-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (32 loc) · 1 KB
/
ci.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
name: Bob the Builder
on:
workflow_dispatch:
push:
branches: [master]
jobs:
build:
name: ${{ matrix.demo }} demo for ${{ matrix.platform }} platform
runs-on: ubuntu-latest
strategy:
matrix:
demo: [backbone, dhcp-boot, led-relay]
platform: [coronet, dagger, zero, envoy]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: dl/
key: dl-${{ matrix.platform }}-${{ matrix.demo }}-${{ hashFiles('.git/modules/netbox/HEAD', 'configs/*', 'package/*/*.hash') }}
restore-keys: |
dl-${{ matrix.platform }}-${{ matrix.demo }}-
dl-${{ matrix.platform }}-
dl-
- name: Configure & Build
run: |
make ${{ matrix.demo }}_${{ matrix.platform }}_defconfig
make
- name: Upload Application Image
uses: actions/upload-artifact@v3
with:
name: app-demo-${{ matrix.demo }}-${{ matrix.platform }}
path: output/images/*