Skip to content

Pin C std to C99 (#12) #70

Pin C std to C99 (#12)

Pin C std to C99 (#12) #70

Workflow file for this run

name: Test
on:
push:
branches:
- main
tags-ignore: ["*"]
pull_request:
branches: ["*"]
workflow_dispatch:
inputs:
logLevel:
description: Log Level
default: info
type: choice
options:
- debug
- error
- fatal
- info
- panic
- warning
environment:
description: Environment
default: test
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- platform: linux/amd64
dockerfile: Dockerfile.generic
tag: nntbn:amd64
test: generic
- platform: linux/arm64
dockerfile: Dockerfile.arm-neon
tag: nntbn:arm64
test: arm-neon
- platform: linux/arm64
dockerfile: Dockerfile.arm-cmsis-dsp
tag: nntbn:arm64
test: arm-cmsis-dsp
- platform: linux/arm/v8
dockerfile: Dockerfile.armv8-neon
tag: nntbn:armv8-neon
test: arm-neon
- platform: linux/arm/v7
dockerfile: Dockerfile.armv7-neon
tag: nntbn:armv7-neon
test: arm-neon
steps:
- name: Docker Setup QEMU
uses: docker/[email protected]
with:
platforms: all
- name: Docker Setup Buildx
uses: docker/[email protected]
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init
- name: Create Buildx
run: |
docker buildx create --name tests --use
docker buildx inspect --bootstrap
- name: Build and Run Test
run: |
docker buildx build --platform ${{ matrix.platform }} -f scripts/docker/${{ matrix.dockerfile }} -t ${{ matrix.tag }} . --load
if [ "${{ matrix.test }}" == "arm-neon" ]; then
docker run --platform ${{ matrix.platform }} ${{ matrix.tag }} /nn/build/tests/arch/arm/neon/neuron
elif [ "${{ matrix.test }}" == "arm-cmsis-dsp" ]; then
docker run --platform ${{ matrix.platform }} ${{ matrix.tag }} /nn/build/tests/arch/arm/cmsis-dsp/neuron
elif [ "${{ matrix.test }}" == "generic" ]; then
docker run --platform ${{ matrix.platform }} ${{ matrix.tag }} /nn/build/tests/arch/generic/neuron
else
echo "unknown test"
exit 1
fi