Skip to content

[DRAFT] Support int16 for some ops #539

[DRAFT] Support int16 for some ops

[DRAFT] Support int16 for some ops #539

name: Run ONERT Ubuntu Native Build
on:
push:
branches:
- master
- release/*
paths:
- '.github/workflows/run-onert-native-build.yml'
- 'nnfw'
- 'Makefile.template'
- 'runtime/**'
- '!runtime/contrib/**'
- '!runtime/infra/debian/**'
- '!runtime/infra/gbs/**'
- '!runtime/infra/python/**'
- '!**/*.md'
pull_request:
branches:
- master
- release/*
paths:
- '.github/workflows/run-onert-native-build.yml'
- 'nnfw'
- 'Makefile.template'
- 'runtime/**'
- '!runtime/contrib/**'
- '!runtime/infra/debian/**'
- '!runtime/infra/gbs/**'
- '!runtime/infra/python/**'
- '!**/*.md'
defaults:
run:
shell: bash
# Cancel previous running jobs when pull request is updated
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
if: github.repository_owner == 'Samsung'
strategy:
# Release build test only on non arm32 platforms
matrix:
type: [ release ]
ubuntu_code: [ jammy ]
arch: [ x86_64, aarch64 ]
include:
- arch: x86_64
runner: one-x64-linux
- arch: aarch64
runner: one-arm-linux
runs-on: ${{ matrix.runner }}
container:
# Use test image: default image is not supporting arm64 yet
image: samsungonedev.azurecr.io/nnfw/one-devtools:${{ matrix.ubuntu_code }}
options: --user root
env:
TARGET_ARCH: ${{ matrix.arch }}
BUILD_TYPE: ${{ matrix.type }}
OPTIONS: "-DBUILD_ARMCOMPUTE=OFF" # Disable arm compute library
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Caching externals
uses: actions/cache@v4
with:
path: runtime/externals
key: external-onert-${{ matrix.ubuntu_code }}-${{ hashFiles('runtime/infra/cmake/packages/**/*.cmake') }}
restore-keys: |
external-onert-${{ matrix.ubuntu_code }}-
- name: Build onert
run: |
make -f Makefile.template
- name: Run test on native
run: |
./Product/out/test/onert-test unittest
./Product/out/test/onert-test unittest --unittestdir=./Product/out/nnapi-gtest