diff --git a/.github/workflows/cmake_x86_vsim.yml b/.github/workflows/cmake_x86_vsim.yml index c6ea7276f..6e6480c95 100644 --- a/.github/workflows/cmake_x86_vsim.yml +++ b/.github/workflows/cmake_x86_vsim.yml @@ -5,6 +5,7 @@ on: branches: [ main ] workflow_dispatch: branches: [ main ] + push: env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) @@ -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 @@ -140,7 +141,7 @@ jobs: # AI-Benchmark 5.0.1 model zoo mobilenet_v2_quant: runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] + needs: [vx-delegate-build] steps: - name: download binary uses: actions/download-artifact@v3 @@ -155,7 +156,7 @@ jobs: mobilenet_v2_b8_quant: runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] + needs: [vx-delegate-build] steps: - name: download binary uses: actions/download-artifact@v3 @@ -169,7 +170,7 @@ jobs: resnet_quant: runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] + needs: [vx-delegate-build] steps: - name: download test binary uses: actions/download-artifact@v3 @@ -183,7 +184,7 @@ jobs: inception_v3_quant: runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] + needs: [vx-delegate-build] steps: - name: download test binary uses: actions/download-artifact@v3 @@ -197,7 +198,7 @@ jobs: mobilenet_v3_b4_quant: runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] + needs: [vx-delegate-build] steps: - name: download test binary uses: actions/download-artifact@v3 @@ -211,7 +212,7 @@ jobs: mobilenet_v3_quant: runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] + needs: [vx-delegate-build] steps: - name: download test binary uses: actions/download-artifact@v3 @@ -225,7 +226,7 @@ jobs: mv3_depth_quant: runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] + needs: [vx-delegate-build] steps: - name: download test binary uses: actions/download-artifact@v3 @@ -239,7 +240,7 @@ jobs: yolo_v4_tiny_quant: runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] + needs: [vx-delegate-build] steps: - name: download test binary uses: actions/download-artifact@v3 @@ -284,7 +285,7 @@ jobs: tfhub-efficientdet-lite0: runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] + needs: [vx-delegate-build] steps: - name: download test binary uses: actions/download-artifact@v3 @@ -298,7 +299,7 @@ jobs: tfhub-efficientdet-lite1: runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] + needs: [vx-delegate-build] steps: - name: download test binary uses: actions/download-artifact@v3 @@ -312,7 +313,7 @@ jobs: tfhub-efficientdet-lite2: runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] + needs: [vx-delegate-build] steps: - name: download test binary uses: actions/download-artifact@v3 @@ -326,7 +327,7 @@ jobs: tfhub-efficientdet-lite3: runs-on: ubuntu-latest - needs: [vx-delegate-build, tim-vx-unit-test] + needs: [vx-delegate-build] steps: - name: download test binary uses: actions/download-artifact@v3