Skip to content

Add support to ESP32C3 #213

Add support to ESP32C3

Add support to ESP32C3 #213

Workflow file for this run

# SPDX-License-Identifier: Apache-2.0
name: Build
on:
push:
branches: [ '*' ]
pull_request:
branches: [ "main" ]
jobs:
build_test:
runs-on: ubuntu-latest
defaults:
run:
shell: nix develop .#ci -c bash -e {0}
steps:
- uses: actions/checkout@v4
- name: Setup nix
uses: ./.github/actions/setup-nix
with:
devShell: ci
script: |
astyle --version
arm-none-eabi-gcc --version
riscv32-esp-elf-gcc --version
qemu-system-arm --version
- name: Lint
run: |
lint
- name: Build targets
run: |
make_platform() {
echo "::group::make platform $1"
make PLATFORM="$1"
code1=$?
echo "::endgroup::"
echo "::group::make platform $1 nistkat"
make PLATFORM="$1" RNG=NISTKAT nistkat
code2=$?
echo "::endgroup::"
return $(( code1 || code2 ))
}
export -f make_platform
tests --list-platforms | grep -v "mps2" | xargs -I {} bash -c 'make_platform "$@" || exit 1' _ {}
- name: Functional test
id: func_test
run: |
tests-qemu func
- name: Speed test
id: speed_test
if: |
success()
|| steps.func_test.conclusion == 'failure'
run: |
tests-qemu speed
- name: Stack test
id: stack_test
if: |
success()
|| steps.func_test.conclusion == 'failure'
|| steps.speed_test.conclusion == 'failure'
run: |
tests-qemu stack
- name: Nistkat test
if: |
success()
|| steps.func_test.conclusion == 'failure'
|| steps.speed_test.conclusion == 'failure'
|| steps.stack_test.conclusion == 'failure'
run: |
tests-qemu nistkat