Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Update Openvino lib path #81

Update Openvino lib path

Update Openvino lib path #81

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
check-style:
runs-on: ubuntu-latest
#environment: development
steps:
- uses: actions/checkout@v2
- name: Run clang-format style check.
uses: jidicula/[email protected]
with:
clang-format-version: '13'
check-path: 'nn-hal'
fetch-code:
needs: check-style
runs-on: self-hosted
env:
ROOT_DIR: /srv/workspace
REPO_NAME: intel-nnhal-dev
steps:
- name: Clone repo.
run: |
echo ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}
cd ${ROOT_DIR}/src/third_party/
rm -rf ${REPO_NAME}
git clone ${{ github.server_url }}/${{ github.repository }} ${REPO_NAME}
cd ${REPO_NAME}
- name: Fetch push code.
if: github.event_name == 'push'
run: |
cd ${ROOT_DIR}/src/third_party/${REPO_NAME}/
git checkout ${{ github.sha }}
cp -r ci/* ${ROOT_DIR}/src/
- name: Fetch pull request code.
if: github.event_name == 'pull_request'
run: |
cd ${ROOT_DIR}/src/third_party/${REPO_NAME}/
git fetch origin pull/${{ github.event.number }}/head:${{ github.head_ref }}
git checkout ${{ github.head_ref }}
cp -r ci/* ${ROOT_DIR}/src/
build-package:
needs: fetch-code
runs-on: self-hosted
env:
ROOT_DIR: /srv/workspace
steps:
- name: Build nn-hal.
run: |
cd ${ROOT_DIR}/src/
sh build-test.sh "build"
deploy-package:
needs: build-package
runs-on: self-hosted
env:
ROOT_DIR: /srv/workspace
steps:
- name: Deploy nn-hal.
run: |
cd ${ROOT_DIR}/src/
sh build-test.sh "deploy"
test-functional:
needs: deploy-package
runs-on: self-hosted
env:
ROOT_DIR: /srv/workspace
steps:
- name: Run functional tests for nn-hal.
run: |
cd ${ROOT_DIR}/src/
sh build-test.sh "functional"