Skip to content

rewrite OpenHC32Boot #16

rewrite OpenHC32Boot

rewrite OpenHC32Boot #16

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
# build all environments
build:
runs-on: ubuntu-latest
# build all environments in a matrix
strategy:
fail-fast: false
matrix:
environment: [ "HC32F460C", "HC32F460E" ]
steps:
# checkout the repository
- uses: actions/checkout@v4
# enable caching of pip and platformio
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
# install python
- uses: actions/setup-python@v5
with:
python-version: '3.9'
# install platformio
- name: Install PlatformIO core
run: pip install --upgrade platformio
# print the build environment name
- name: Print matrix value for 'environment'
run: echo ${{ matrix.environment }}
# build the environment
- name: Build environment
run: pio run --environment ${{ matrix.environment }}
# dummy job after all environments were build
all_build:
runs-on: ubuntu-latest
needs: [build]
if: always()
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}