-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[infra/github] Introduce x64 onert test workflow
This commit introduces a new workflow to run x64 onert build and tests on GitHub Actions. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
- Loading branch information
Showing
1 changed file
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: Run ONERT Ubuntu Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- release/* | ||
paths: | ||
- '.github/workflows/run-onert-build.yml' | ||
- 'nn*' | ||
- 'Makefile.template' | ||
- 'compute/**' | ||
- 'infra/buildtool/**' | ||
- 'infra/cmake/**' | ||
- 'infra/nncc/**' | ||
- 'infra/nnfw/**' | ||
- 'runtime/**' | ||
- 'tests/**' | ||
- '!**/*.md' | ||
pull_request: | ||
branches: | ||
- master | ||
- release/* | ||
paths: | ||
- '.github/workflows/run-onert-build.yml' | ||
- 'nn*' | ||
- 'Makefile.template' | ||
- 'compute/**' | ||
- 'infra/buildtool/**' | ||
- 'infra/cmake/**' | ||
- 'infra/nncc/**' | ||
- 'infra/nnfw/**' | ||
- 'runtime/**' | ||
- 'tests/**' | ||
- '!**/*.md' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build: | ||
if: github.repository_owner == 'Samsung' | ||
strategy: | ||
matrix: | ||
type: [ debug, release ] | ||
ubuntu_code: [ focal, jammy ] # TODO: noble | ||
arch: [ x86_64 ] # TODO: armv7l, aarch64 | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: nnfw/one-devtools:${{ matrix.ubuntu_code }} | ||
env: | ||
TARGET_ARCH: ${{ matrix.arch }} | ||
BUILD_TYPE: ${{ matrix.type }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Caching externals | ||
uses: actions/cache@v4 | ||
with: | ||
path: externals | ||
key: external-onert-${{ matrix.ubuntu_code }}-${{ hashFiles('infra/cmake/packages/**/*.cmake') }}-${{ hashFiles('infra/nnfw/cmake/packages/**/*.cmake') }} | ||
restore-keys: | | ||
external-onert-${{ matrix.ubuntu_code }}- | ||
external-onert- | ||
external- | ||
- name: Build onert | ||
run: | | ||
make -f Makefile.template | ||
- name: Run test | ||
run: | | ||
./Product/out/test/onert-test unittest | ||
./Product/out/test/onert-test unittest --unittestdir=./Product/out/nnapi-gtest |