Skip to content

Commit

Permalink
mdify yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfeiyue-cfy committed Nov 2, 2023
1 parent 44ba712 commit 511bf90
Showing 1 changed file with 61 additions and 60 deletions.
121 changes: 61 additions & 60 deletions .github/workflows/cmake_x86_vsim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ on:
branches: [ main ]
workflow_dispatch:
branches: [ main ]
push:

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
BUILD_TYPE: Debug
LD_LIBRARY_PATH: ${{github.workspace}}/tim-vx-install/prebuilt-sdk/x86_64_linux/lib:${{github.workspace}}/tim-vx-install/build/lib:${{github.workspace}}/tim-vx-install/tim-vx.install.dir/lib
VIVANTE_SDK_DIR: ${{github.workspace}}/tim-vx-install/prebuilt-sdk/x86_64_linux/
VSI_NN_LOG_LEVEL: 5
Expand Down Expand Up @@ -43,73 +44,73 @@ jobs:
${{github.workspace}}/tim-vx.install.dir/
${{github.workspace}}/.github/
tim-vx-build-clang:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
env:
CC: clang
CXX: clang++
steps:
- uses: actions/checkout@v2
# tim-vx-build-clang:
# # The CMake configure and build commands are platform agnostic and should work equally
# # well on Windows or Mac. You can convert this to a matrix build if you need
# # cross-platform coverage.
# # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
# runs-on: ubuntu-latest
# env:
# CC: clang
# CXX: clang++
# steps:
# - uses: actions/checkout@v2

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DTIM_VX_ENABLE_TEST=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/tim-vx.install.dir/
# - name: Configure CMake
# # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
# run: |
# cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DTIM_VX_ENABLE_TEST=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/tim-vx.install.dir/

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
# - name: Build
# # Build your program with the given configuration
# run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

# default unit-test
tim-vx-unit-test:
needs: tim-vx-build
runs-on: ubuntu-latest
env:
LD_LIBRARY_PATH: ${{github.workspace}}/prebuilt-sdk/x86_64_linux/lib:${{github.workspace}}/build/lib:${{github.workspace}}/tim-vx.install.dir/lib
VIVANTE_SDK_DIR: ${{github.workspace}}/prebuilt-sdk/x86_64_linux/
steps:
- name: download tim-vx build output
uses: actions/download-artifact@v3
with:
name: tim-vx-install
# tim-vx-unit-test:
# needs: tim-vx-build
# runs-on: ubuntu-latest
# env:
# LD_LIBRARY_PATH: ${{github.workspace}}/prebuilt-sdk/x86_64_linux/lib:${{github.workspace}}/build/lib:${{github.workspace}}/tim-vx.install.dir/lib
# VIVANTE_SDK_DIR: ${{github.workspace}}/prebuilt-sdk/x86_64_linux/
# steps:
# - name: download tim-vx build output
# uses: actions/download-artifact@v3
# with:
# name: tim-vx-install

- name: tim-vx.unit-test.x86.vsim
run: |
cd ${{github.workspace}}/tim-vx.install.dir/bin
chmod u+x ./unit_test
./unit_test --gtest_also_run_disabled_tests
- name: tim-vx.samples
run: |
cd ${{github.workspace}}/tim-vx.install.dir/bin
chmod u+x multi_thread_test
chmod u+x lenet_multi_device
./multi_thread_test
./lenet_multi_device
# - name: tim-vx.unit-test.x86.vsim
# run: |
# cd ${{github.workspace}}/tim-vx.install.dir/bin
# chmod u+x ./unit_test
# ./unit_test --gtest_also_run_disabled_tests
# - name: tim-vx.samples
# run: |
# cd ${{github.workspace}}/tim-vx.install.dir/bin
# chmod u+x multi_thread_test
# chmod u+x lenet_multi_device
# ./multi_thread_test
# ./lenet_multi_device

# cl-only test
tim-vx-unit-test-cl:
needs: tim-vx-build
runs-on: ubuntu-latest
env:
LD_LIBRARY_PATH: ${{github.workspace}}/prebuilt-sdk/x86_64_linux/lib:${{github.workspace}}/build/lib:${{github.workspace}}/tim-vx.install.dir/lib
VIVANTE_SDK_DIR: ${{github.workspace}}/prebuilt-sdk/x86_64_linux/
VIV_VX_DISABLE_TP_NN_EVIS: 1
steps:
- name: download tim-vx build output
uses: actions/download-artifact@v3
with:
name: tim-vx-install
# tim-vx-unit-test-cl:
# needs: tim-vx-build
# runs-on: ubuntu-latest
# env:
# LD_LIBRARY_PATH: ${{github.workspace}}/prebuilt-sdk/x86_64_linux/lib:${{github.workspace}}/build/lib:${{github.workspace}}/tim-vx.install.dir/lib
# VIVANTE_SDK_DIR: ${{github.workspace}}/prebuilt-sdk/x86_64_linux/
# VIV_VX_DISABLE_TP_NN_EVIS: 1
# steps:
# - name: download tim-vx build output
# uses: actions/download-artifact@v3
# with:
# name: tim-vx-install

- name: tim-vx.unit-test.x86.vsim
run: |
cd ${{github.workspace}}/tim-vx.install.dir/bin
chmod u+x ./unit_test
./unit_test
# - name: tim-vx.unit-test.x86.vsim
# run: |
# cd ${{github.workspace}}/tim-vx.install.dir/bin
# chmod u+x ./unit_test
# ./unit_test

vx-delegate-build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 511bf90

Please sign in to comment.