This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
61 lines (57 loc) · 1.56 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: 'build'
on:
pull_request:
push:
branches:
- main
jobs:
IDFboot:
runs-on: ubuntu-20.04
strategy:
matrix:
targets: [esp32, esp32s2, esp32s3, esp32c3]
steps:
- uses: actions/checkout@v3
- name: Build IDF bootloader and partition table
uses: docker://docker.io/espressif/idf:v4.4.1
with:
args: ./build_idfboot.sh -c ${{matrix.targets}}
- uses: actions/upload-artifact@v3
with:
name: idf-builds
path: out/
MCUboot:
runs-on: ubuntu-20.04
strategy:
matrix:
targets: [esp32, esp32s2, esp32c3]
steps:
- uses: actions/checkout@v3
- name: Build MCUboot bootloader
uses: docker://docker.io/espressif/idf:release-v4.4
with:
args: |
git config --global --add safe.directory /github/workspace
./build_mcuboot.sh -s -c ${{matrix.targets}}
- uses: actions/upload-artifact@v3
with:
name: mcuboot-builds
path: out/
Release-Artifacts:
runs-on: ubuntu-20.04
needs: [IDFboot, MCUboot]
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: buildartifacts/
- name: Update release
if: "github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')"
uses: eine/tip@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: |
buildartifacts/idf-builds/*
buildartifacts/mcuboot-builds/*
tag: latest
rm: true