Skip to content

Commit

Permalink
[infra/github] Test onecc without docker (#14065)
Browse files Browse the repository at this point in the history
This commit updates onecc test workflow to run without docker.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Oct 10, 2024
1 parent 44d8dde commit 21d3d02
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/run-onecc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ defaults:

jobs:
onecc-test:
# Tested ubuntu version is decided by docker image, not runner
runs-on: ubuntu-latest
if: github.repository_owner == 'Samsung'
strategy:
matrix:
Expand All @@ -48,9 +46,7 @@ jobs:
ubuntu_ver: 20.04
- ubuntu_code: jammy
ubuntu_ver: 22.04
container:
image: nnfw/one-devtools:${{ matrix.ubuntu_code }}
options: --user root
runs-on: ubuntu-${{ matrix.ubuntu_ver }}
env:
NNCC_WORKSPACE : build
NNCC_INSTALL_PREFIX : install
Expand All @@ -60,6 +56,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# dalgona uses pybind11, but pybind11 cannot bind packages in virtualenv.
# So we need to install packages for dalgona-test globally.
- name: Install required packages
run: |
python3 -m pip install numpy h5py==3.11.0 flatbuffers==23.5.26
- name: Caching externals
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -119,3 +121,13 @@ jobs:
## onecc workflows
bash onecc_032.test
bash onecc_041.test
# Upload log if failed
- name: Upload log
uses: actions/upload-artifact@v4
if: failure()
with:
name: fail-${{ matrix.ubuntu_code }}-${{ matrix.type }}
path: |
${{ env.NNCC_WORKSPACE }}/compiler/**/*.log
${{ env.NNCC_INSTALL_PATH }}/test/**/*.log

0 comments on commit 21d3d02

Please sign in to comment.