Skip to content

Commit

Permalink
[github] Add ubuntu 22.04 test to onecc workflow (#13619)
Browse files Browse the repository at this point in the history
This commit adds matrix context to onecc workflow for ubuntu 22.04  test.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Aug 9, 2024
1 parent 484774f commit 06be246
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/run-onecc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,21 @@ jobs:
# Tested ubuntu version is decided by docker image, not runner
runs-on: ubuntu-latest
strategy:
# TODO Support various ubuntu version
matrix:
type: [ Debug, Release ]
ubuntu_code: [ focal, jammy ]
include:
- ubuntu_code: focal
ubuntu_ver: 20.04
- ubuntu_code: jammy
ubuntu_ver: 22.04
container:
image: nnfw/one-devtools:focal
image: nnfw/one-devtools:${{ matrix.ubuntu_code }}
options: --user root
env:
NNCC_WORKSPACE : build
NNCC_INSTALL_PREFIX : install
name: onecc ubuntu 20.04 ${{ matrix.type }} test
name: onecc ubuntu ${{ matrix.ubuntu_ver }} ${{ matrix.type }} test

steps:
- name: Checkout
Expand All @@ -67,7 +72,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.ubuntu_code }}-${{ hashFiles('compiler/common-artifacts/CMakeLists.txt') }}-${{ hashFiles('infra/cmake/packages/**/*.cmake') }}

- name: Build
run: |
Expand Down

0 comments on commit 06be246

Please sign in to comment.