Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

build

build #199

Workflow file for this run

name: 'build'
on:
pull_request:
push:
branches:
- main
jobs:
IDFboot:
runs-on: ubuntu-20.04
strategy:
matrix:
targets: [esp32, esp32s2, esp32s3, esp32c2, esp32c3, esp32c6, esp32h2]
steps:
- uses: actions/checkout@v3
- name: Build IDF bootloader and partition table
uses: docker://docker.io/espressif/idf:latest
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, esp32s3, esp32c3]
steps:
- uses: actions/checkout@v3
- name: Build MCUboot bootloader
uses: docker://docker.io/espressif/idf:v4.4
with:
args: /bin/sh -c "git config --global --add safe.directory '*' && ./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: pyTooling/Actions/releaser@r0
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: |
buildartifacts/idf-builds/*
buildartifacts/mcuboot-builds/*
tag: latest
rm: true