Skip to content

Commit

Permalink
[github] Test onecc more cases
Browse files Browse the repository at this point in the history
This commit updates onecc test workflow to cover more cases
- After merging
- Ubuntu 22.04

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh committed Aug 6, 2024
1 parent 457a1cc commit 2abac64
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/run-onecc-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
name: Run ONECC Ubuntu Build

on:
push:
branches:
- master
- release/*
paths:
- '.github/workflows/run-onecc-build.yml'
- 'nnas'
- 'nncc'
- 'compiler/**'
- 'infra/cmake/**'
- 'infra/nncc/**'
- 'nnpackage/schema/**'
- 'res/**'
- '!**/*.md'
pull_request:
branches:
- master
Expand Down Expand Up @@ -28,13 +42,19 @@ jobs:
# TODO Support various ubuntu version
matrix:
type: [ Debug, Release ]
codename: [ focal, jammy ]
include:
- codename: focal
os_version: '20.04'
- codename: jammy
os_version: '22.04'
container:
image: nnfw/one-devtools:focal
image: nnfw/one-devtools:${{ matrix.codename }}
options: --user root
env:
NNCC_WORKSPACE : build
NNCC_INSTALL_PREFIX : install
name: onecc ubuntu 20.04 ${{ matrix.type }} test
name: onecc ubuntu ${{ matrix.os_version }} ${{ matrix.type }} test

steps:
- name: Checkout
Expand All @@ -53,7 +73,7 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ env.NNCC_WORKSPACE }}/overlay
key: overlay-onecc-focal-${{ hashFiles('compiler/common-artifacts/CMakeLists.txt') }}-${{ hashFiles('infra/cmake/packages/**/*.cmake') }}
key: overlay-onecc-${{ matrix.codename }}-${{ hashFiles('compiler/common-artifacts/CMakeLists.txt') }}-${{ hashFiles('infra/cmake/packages/**/*.cmake') }}

- name: Build
run: |
Expand Down

0 comments on commit 2abac64

Please sign in to comment.