build-and-test.yml 17.8 KB
Newer Older
D
daquexian 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
name: Build and test

on:
  push:
    branches: [tengine-lite]
    paths:
    paths-ignore: 
    - 'doc/**'
    - 'README.md'
    - 'README_EN.md'
  pull_request:
    branches: [tengine-lite]
    paths-ignore: 
    - 'doc/**'
    - 'README.md'
    - 'README_EN.md'

jobs:
  android-armv7-cpu:
    runs-on: ubuntu-latest
    steps:
22
    - uses: actions/checkout@v3
D
daquexian 已提交
23 24 25 26 27 28 29 30
    - name: configure
      run: mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_HOME/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_ABI="armeabi-v7a" -DANDROID_PLATFORM=android-19 ..
    - name: build
      run: cmake --build build -j 2

  android-armv8-cpu:
    runs-on: ubuntu-latest
    steps:
31
    - uses: actions/checkout@v3
D
daquexian 已提交
32 33 34 35 36
    - name: configure
      run: mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_HOME/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_ABI="arm64-v8a" -DANDROID_PLATFORM=android-21 ..
    - name: build
      run: cmake --build build -j 2

B
BowShotDS 已提交
37 38 39
  # linux-armv7-cpu-gcc:
  #   runs-on: ubuntu-20.04
  #   steps:
40
  #   - uses: actions/checkout@v3
D
daquexian 已提交
41

B
BowShotDS 已提交
42 43
  #   - name: cache-qemu
  #     id: cache-qemu
44
  #     uses: actions/cache@v3
B
BowShotDS 已提交
45 46 47 48 49
  #     with:
  #       path: qemu-install
  #       key: qemu-arm-install-1
  #   - name: checkout-qemu
  #     if: steps.cache-qemu.outputs.cache-hit != 'true'
50
  #     uses: actions/checkout@v3
B
BowShotDS 已提交
51 52 53 54 55 56 57 58 59 60 61 62
  #     with:
  #       repository: qemu/qemu
  #       path: qemu
  #       ref: 8746309137ba470d1b2e8f5ce86ac228625db940
  #   - name: qemu
  #     if: steps.cache-qemu.outputs.cache-hit != 'true'
  #     run: |
  #       cd qemu
  #       ./configure --prefix=install --target-list=arm-linux-user --disable-system
  #       make -j2
  #       make install
  #       cp -r arm-linux-user/install $GITHUB_WORKSPACE/qemu-install
D
daquexian 已提交
63

B
BowShotDS 已提交
64 65 66 67
  #   - name: arm-gnu-toolchain
  #     run: |
  #       sudo apt-get update
  #       sudo apt-get install g++-arm-linux-gnueabi
D
daquexian 已提交
68

B
BowShotDS 已提交
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
  #   - name: configure
  #     run: mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/arm-linux-gnueabi.toolchain.cmake -DTENGINE_BUILD_TESTS=ON ..
  #   - name: build
  #     run: cmake --build build -j 2
  #   - name: models
  #     run: |
  #       cd build
  #       wget -c http://8.136.149.78/download/ci_data/images.zip && unzip images.zip && rm images.zip
  #       wget -c http://8.136.149.78/download/ci_data/data_arm32.zip && unzip data_arm32.zip && rm data_arm32.zip && mv data_arm32 data
  #       wget -c http://8.136.149.78/download/ci_data/model_test.zip && unzip model_test.zip && rm model_test.zip && mv model_test model
  #   - name: test
  #     run: |
  #       export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH
  #       chmod +x ./tests/test_arm32.sh
  #       cd build
  #       ../tests/test_arm32.sh
D
daquexian 已提交
85

B
BowShotDS 已提交
86 87 88
  # linux-armv8-cpu-gcc:
  #   runs-on: ubuntu-20.04
  #   steps:
89
  #   - uses: actions/checkout@v3
D
daquexian 已提交
90

B
BowShotDS 已提交
91 92
  #   - name: cache-qemu
  #     id: cache-qemu
93
  #     uses: actions/cache@v3
B
BowShotDS 已提交
94 95 96 97 98
  #     with:
  #       path: qemu-install
  #       key: qemu-aarch64-install-1
  #   - name: checkout-qemu
  #     if: steps.cache-qemu.outputs.cache-hit != 'true'
99
  #     uses: actions/checkout@v3
B
BowShotDS 已提交
100 101 102 103 104 105 106 107 108 109 110 111
  #     with:
  #       repository: qemu/qemu
  #       path: qemu
  #       ref: 8746309137ba470d1b2e8f5ce86ac228625db940
  #   - name: qemu
  #     if: steps.cache-qemu.outputs.cache-hit != 'true'
  #     run: |
  #       cd qemu
  #       ./configure --prefix=install --target-list=aarch64-linux-user --disable-system
  #       make -j2
  #       make install
  #       cp -r aarch64-linux-user/install $GITHUB_WORKSPACE/qemu-install
D
daquexian 已提交
112

B
BowShotDS 已提交
113 114 115 116
  #   - name: aarch64-gnu-toolchain
  #     run: |
  #       sudo apt-get update
  #       sudo apt-get install g++-aarch64-linux-gnu
D
daquexian 已提交
117

B
BowShotDS 已提交
118 119 120 121 122 123 124 125 126 127
  #   - name: configure
  #     run: mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/aarch64-linux-gnu.toolchain.cmake -DTENGINE_BUILD_TESTS=ON ..
  #   - name: build
  #     run: cmake --build build -j 2
  #   - name: models
  #     run: |
  #       cd build
  #       wget -c http://8.136.149.78/download/ci_data/images.zip && unzip images.zip && rm images.zip
  #       wget -c http://8.136.149.78/download/ci_data/data_arm64.zip && unzip data_arm64.zip && rm data_arm64.zip && mv data_arm64 data
  #       wget -c http://8.136.149.78/download/ci_data/model_test.zip && unzip model_test.zip && rm model_test.zip && mv model_test model
reachfoo's avatar
reachfoo 已提交
128

B
BowShotDS 已提交
129 130 131 132 133 134
  #   - name: test
  #     run: |
  #       export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH
  #       chmod +x ./tests/test_arm64.sh
  #       cd build
  #       ../tests/test_arm64.sh
D
daquexian 已提交
135

reachfoo's avatar
reachfoo 已提交
136 137 138
  linux-armv8-cpu-gcc-timvx:
    runs-on: khadas-vim3
    steps:
139
    - uses: actions/checkout@v3
reachfoo's avatar
reachfoo 已提交
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
    - name: tim-vx
      run: |
        git clone https://github.com/VeriSilicon/TIM-VX.git
        cp -rvf ./TIM-VX/include  ./source/device/tim-vx/
        cp -rvf ./TIM-VX/src      ./source/device/tim-vx/
        rm ./source/device/tim-vx/src/tim/vx/*_test.cc
        rm ./source/device/tim-vx/src/tim/vx/ops/*_test.cc
    - name: configure
      run: mkdir build && cd build && cmake -GNinja -DTENGINE_BUILD_TESTS=ON -DTENGINE_ENABLE_TIM_VX=ON ..
    - name: build
      run: cmake --build build -j 6
    - name: models
      run: |
        cd build
        actions=/home/khadas/actions-runner
reachfoo's avatar
reachfoo 已提交
155
        ln -s ${actions}/ci_test/models_test/ models
reachfoo's avatar
reachfoo 已提交
156
        ln -s ${actions}/ci_test/images/      images
reachfoo's avatar
reachfoo 已提交
157
        ln -s ${actions}/ci_test/data_arm64/  data
reachfoo's avatar
reachfoo 已提交
158 159 160 161 162 163 164 165 166
    - name: test
      run: |
        chmod +x ./tests/test_arm64_real.sh
        cd build
        ../tests/test_arm64_real.sh
        
  linux-armv8-cpu-gcc-AGX-Xaiver:
    runs-on: AGX-xaiver
    steps:
167
    - uses: actions/checkout@v3
reachfoo's avatar
reachfoo 已提交
168 169 170 171 172 173 174 175
    - name: configure
      run: mkdir build && cd build && cmake -GNinja -DTENGINE_BUILD_TESTS=ON -DTENGINE_ENABLE_TENSORRT=ON ..
    - name: build
      run: cmake --build build -j 8
    - name: models
      run: |
        cd build
        actions=/home/nvidia/actions-runner
reachfoo's avatar
reachfoo 已提交
176
        ln -s ${actions}/ci_test/models_test/ models
reachfoo's avatar
reachfoo 已提交
177
        ln -s ${actions}/ci_test/images/      images
reachfoo's avatar
reachfoo 已提交
178
        ln -s ${actions}/ci_test/data_arm64/  data
reachfoo's avatar
reachfoo 已提交
179 180
    - name: test
      run: |
181
        chmod +x ./tests/test_arm64_*.sh
reachfoo's avatar
reachfoo 已提交
182 183
        cd build
        ../tests/test_arm64_real.sh
184
        ../tests/test_arm64_trt.sh
reachfoo's avatar
reachfoo 已提交
185
        
D
daquexian 已提交
186 187 188 189 190 191 192
  linux-gcc-mipsisa64r6el:
    runs-on: ubuntu-20.04
    steps:
    - name: cancel-previous-runs
      uses: styfle/cancel-workflow-action@0.9.1
      with:
        access_token: ${{ secrets.GITHUB_TOKEN }}
193
    - uses: actions/checkout@v3
D
daquexian 已提交
194 195 196

    - name: cache-qemu
      id: cache-qemu
197
      uses: actions/cache@v3
D
daquexian 已提交
198 199 200 201 202
      with:
        path: qemu-install
        key: qemu-mips64el-install-1
    - name: checkout-qemu
      if: steps.cache-qemu.outputs.cache-hit != 'true'
203
      uses: actions/checkout@v3
D
daquexian 已提交
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
      with:
        repository: qemu/qemu
        path: qemu
        ref: 8746309137ba470d1b2e8f5ce86ac228625db940
    - name: qemu
      if: steps.cache-qemu.outputs.cache-hit != 'true'
      run: |
        cd qemu
        ./configure --prefix=install --target-list=mips64el-linux-user --disable-system
        make -j2
        make install
        cp -r mips64el-linux-user/install $GITHUB_WORKSPACE/qemu-install

    - name: mipsisa64r6el-gnuabi64-toolchain
      run: |
        sudo apt-get update
        sudo apt-get install g++-mipsisa64r6el-linux-gnuabi64

    - name: configure
      run: mkdir build && cd build && cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/mipsisa64r6el-linux-gnuabi64.toolchain.cmake -DTENGINE_BUILD_EXAMPLES=OFF ..
    - name: build
      run: cmake --build build -j 2

  windows-x64-cpu-vs2017:
    runs-on: windows-2016
    steps:
230
    - uses: actions/checkout@v3
D
daquexian 已提交
231 232 233 234 235 236 237 238 239
    - name: build
      run: |
        mkdir build; cd build
        cmake -T v141,host=x64 -A x64 -DTENGINE_OPENMP=OFF -DTENGINE_BUILD_EXAMPLES=OFF ..
        cmake --build . --config Release -j 2

  windows-x64-cpu-vs2019:
    runs-on: windows-latest
    steps:
240
    - uses: actions/checkout@v3
D
daquexian 已提交
241 242 243 244 245 246 247 248 249
    - name: build
      run: |
        mkdir build; cd build
        cmake -A x64 -DTENGINE_BUILD_EXAMPLES=OFF ..
        cmake --build . --config Release -j 2

  windows-x86-cpu-vs2017:
    runs-on: windows-2016
    steps:
250
    - uses: actions/checkout@v3
D
daquexian 已提交
251 252 253 254 255 256 257 258 259
    - name: build
      run: |
        mkdir build; cd build
        cmake -T v141,host=x64 -A Win32 -DTENGINE_OPENMP=OFF -DTENGINE_BUILD_EXAMPLES=OFF ..
        cmake --build . --config Release -j 2

  windows-x86-cpu-vs2019:
    runs-on: windows-latest
    steps:
260
    - uses: actions/checkout@v3
D
daquexian 已提交
261 262 263 264 265 266 267 268 269
    - name: build
      run: |
        mkdir build; cd build
        cmake -T v142,host=x64 -A Win32 -DTENGINE_BUILD_EXAMPLES=OFF ..
        cmake --build . --config Release -j 2

  linux-x64-cpu-timvx-gcc:
    runs-on: ubuntu-latest
    steps:
270
    - uses: actions/checkout@v3
D
daquexian 已提交
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
    - name: update
      run: sudo apt-get update
    - name: protobuf
      run: sudo apt-get install libopencv-dev
    - name: tim-vx
      run: |
        git clone https://github.com/VeriSilicon/TIM-VX.git
        export LD_LIBRARY_PATH=${PWD}/3rdparty/tim-vx/lib/x86_64
        mkdir -p ./3rdparty/tim-vx/include
        mkdir -p ./3rdparty/tim-vx/lib/x86_64
        cp -rvf ./TIM-VX/prebuilt-sdk/x86_64_linux/include/*  ./3rdparty/tim-vx/include/
        cp -rvf ./TIM-VX/prebuilt-sdk/x86_64_linux/lib/*      ./3rdparty/tim-vx/lib/x86_64/
        cp -rvf ./TIM-VX/include  ./source/device/tim-vx/
        cp -rvf ./TIM-VX/src      ./source/device/tim-vx/
        rm ./source/device/tim-vx/src/tim/vx/*_test.cc
        rm ./source/device/tim-vx/src/tim/vx/ops/*_test.cc
    - name: configure
      run: mkdir build && cd build && cmake -DTENGINE_ENABLE_TIM_VX=ON ..
    - name: build
      run: cmake --build build -j 2

  linux-x64-cpu-gcc:
B
BowShotDS 已提交
293
    runs-on: x86-server-build-test
D
daquexian 已提交
294
    steps:
295
    - uses: actions/checkout@v3
B
BowShotDS 已提交
296 297 298 299
    # - name: update
    #   run: sudo apt-get update
    # - name: depends
    #   run: sudo apt-get install libprotobuf-dev protobuf-compiler libopencv-dev
D
daquexian 已提交
300
    - name: configure
B
BowShotDS 已提交
301
      run: mkdir build && cd build && /usr/local/cmake-3.19.8-Linux-x86_64/bin/cmake -DTENGINE_BUILD_TESTS=ON ..
D
daquexian 已提交
302
    - name: build
B
BowShotDS 已提交
303
      run: /usr/local/cmake-3.19.8-Linux-x86_64/bin/cmake --build build -j 8
D
daquexian 已提交
304 305 306
    - name: optest
      run: |
        cd build
B
BowShotDS 已提交
307 308
        actions=/home/dongdong
        ln -s ${actions}/ci_test/onnx_op_test_data/ onnx_node
D
daquexian 已提交
309 310 311 312 313
        export TG_DEBUG_REF=1
        ctest --output-on-failure
    - name: test-data
      run: |
        cd build
B
BowShotDS 已提交
314 315 316 317
        actions=/home/dongdong
        ln -s ${actions}/ci_test/model_test/  models
        ln -s ${actions}/ci_test/images/      images
        ln -s ${actions}/ci_test/data_x86/    data         
D
daquexian 已提交
318 319 320 321 322 323 324 325 326 327 328 329
    - name: test-models
      run: |
        chmod +x ./tests/test.sh
        cd build
        ../tests/test.sh
    - name: test-op
      run: |
        cd build
        export TG_DEBUG_REF=1
        ctest --output-on-failure       

  linux-x64-cpu-clang:
B
BowShotDS 已提交
330
    runs-on: x86-server-build-test
D
daquexian 已提交
331
    steps:
332
    - uses: actions/checkout@v3
B
BowShotDS 已提交
333 334 335 336
    # - name: update
    #   run: sudo apt-get update
    # - name: depends
    #   run: sudo apt-get install libprotobuf-dev protobuf-compiler libopencv-dev
D
daquexian 已提交
337 338 339 340
    - name: configure
      env:
        CC: clang
        CXX: clang++    
B
BowShotDS 已提交
341
      run: mkdir build && cd build && /usr/local/cmake-3.19.8-Linux-x86_64/bin/cmake -DTENGINE_BUILD_TESTS=ON -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX  ..
D
daquexian 已提交
342
    - name: build
B
BowShotDS 已提交
343
      run: /usr/local/cmake-3.19.8-Linux-x86_64/bin/cmake --build build -j 8
D
daquexian 已提交
344 345 346
    - name: test-data
      run: |
        cd build
B
BowShotDS 已提交
347 348 349 350 351
        actions=/home/dongdong
        ln -s ${actions}/ci_test/onnx_op_test_data/ onnx_node
        ln -s ${actions}/ci_test/model_test/        models
        ln -s ${actions}/ci_test/images/            images
        ln -s ${actions}/ci_test/data_x86/          data           
D
daquexian 已提交
352 353 354 355 356 357 358 359 360 361 362 363
    - name: test-models
      run: |
        chmod +x ./tests/test.sh
        cd build
        ../tests/test.sh
    - name: test-op
      run: |
        cd build
        export TG_DEBUG_REF=1
        ctest --output-on-failure        
        
  linux-x64-cpu-tools-convert:
B
BowShotDS 已提交
364
    runs-on: x86-server-build-test
D
daquexian 已提交
365
    steps:
366
    - uses: actions/checkout@v3
B
BowShotDS 已提交
367 368 369 370 371 372 373 374 375
    # - name: update
    #   run: |
    #     sudo apt-get update
    #     sudo apt-get install libopencv-dev
    - name: configure
      run: mkdir build && cd build && /usr/local/cmake-3.19.8-Linux-x86_64/bin/cmake -DTENGINE_BUILD_CONVERT_TOOL=ON -DTENGINE_BUILD_TESTS=ON ..
    - name: build
      run: /usr/local/cmake-3.19.8-Linux-x86_64/bin/cmake --build build -j 8     
    - name: depends
D
daquexian 已提交
376
      run: |
B
BowShotDS 已提交
377 378 379 380
        cd build 
        actions=/home/dongdong
        ln -s ${actions}/ci_test/model_test_convert/models       models
        ln -s ${actions}/ci_test/model_test_convert/outputs      outputs
D
daquexian 已提交
381 382
    - name: Run tests
      run: |
B
BowShotDS 已提交
383
        chmod +x ./tests/test_onnx_model.sh 
D
daquexian 已提交
384
        cd build
B
BowShotDS 已提交
385 386 387 388 389
        ../tests/test_onnx_model.sh

  # linux-x64-cpu-tools-convert:
  #   runs-on: x86-server-build-test
  #   steps:
390
  #   - uses: actions/checkout@v3
B
BowShotDS 已提交
391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424
  #     with:
  #       repository: protocolbuffers/protobuf
  #       ref: v3.17.3
  #       path: protobuf
  #       submodules: recursive
  #   - name: Build AppImage
  #     run: |
  #       docker run --network=host --env PROTOBUF_REPO_DIR=$PWD/protobuf -v $PWD:$PWD -w $PWD --privileged --ipc=host centos:7 $PWD/.github/workflows/build-package-and-test-convert-tools.sh
  #   - name: Install dependencies for test
  #     run: |
  #       sudo apt-get update
  #       sudo apt-get install libopencv-dev
  #   - name: Configure
  #     run: mkdir build && cd build && /home/dongdong/actions-runners-x86/build_and_test/help/cmake-3.21.2-linux-x86_64/bin/cmake -DTENGINE_BUILD_TESTS=ON ..
  #   - name: Build test
  #     run: /home/dongdong/actions-runners-x86/build_and_test/help/cmake-3.21.2-linux-x86_64/bin/cmake --build build -j 2          
  #   - name: Download and unzip test data
  #     run: |
  #       cd build 
  #       actions=/home/dongdong
  #       ln -s ${actions}/ci_test/model_test_convert/onnx_models.zip onnx_models.zip
  #       unzip onnx_models.zip
  #       ln -s ${actions}/ci_test/model_test_convert/onnx_models_output.zip onnx_models_output.zip
  #       unzip onnx_models_output.zip
  #   - name: Run tests
  #     run: |
  #       chmod +x ./tests/test_onnx_model.sh 
  #       cd build
  #       ../tests/test_onnx_model.sh ../convert_tool-x86_64.AppImage
  #   - name: Upload AppImage
  #     uses: actions/upload-artifact@v2
  #     with:
  #       name: convert_tool_AppImage
  #       path: convert_tool-x86_64.AppImage
D
daquexian 已提交
425 426

  linux-x64-cpu-tools-quant:
B
BowShotDS 已提交
427
    runs-on: x86-server-build-test
D
daquexian 已提交
428
    steps:
429
    - uses: actions/checkout@v3
B
BowShotDS 已提交
430 431 432 433
    # - name: update
    #   run: |
    #     sudo apt-get update
    #     sudo apt-get install libopencv-dev
D
daquexian 已提交
434
    - name: configure
B
BowShotDS 已提交
435
      run: mkdir build && cd build && /usr/local/cmake-3.19.8-Linux-x86_64/bin/cmake -DTENGINE_BUILD_QUANT_TOOL=ON -DTENGINE_BUILD_EXAMPLES=ON ..
D
daquexian 已提交
436
    - name: build
B
BowShotDS 已提交
437
      run: /usr/local/cmake-3.19.8-Linux-x86_64/bin/cmake --build build -j 8     
D
daquexian 已提交
438 439
    - name: depends
      run: |
B
BowShotDS 已提交
440 441 442 443 444
        cd build
        actions=/home/dongdong
        ln -s ${actions}/ci_test/tengine_test_data/mobilenet.tmfile   mobilenet.tmfile
        ln -s ${actions}/ci_test/tengine_test_data/dataset            dataset
        ln -s ${actions}/ci_test/images/                              images
D
daquexian 已提交
445 446
    - name: quant-tools-test
      run: |
B
BowShotDS 已提交
447 448
        cd build
        ./tools/quantize/quant_tool_uint8 -m mobilenet.tmfile -o mobilenet_uint8.tmfile -i ./dataset -g 3,224,224 -s 0.017,0.017,0.017 -c 1
D
daquexian 已提交
449 450
    - name: uint8-model-test
      run: |
B
BowShotDS 已提交
451 452
        cd build
        ./examples/tm_classification_uint8 -m mobilenet_uint8.tmfile -i images/cat.jpg -g 224,224 -s 0.017,0.017,0.017
D
daquexian 已提交
453

B
BowShotDS 已提交
454 455 456
  # linux-x64-cpu-tools-quant:
  #   runs-on: x86-server-build-test
  #   steps:
457
  #   - uses: actions/checkout@v3
B
BowShotDS 已提交
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496
  #     with:
  #       repository: opencv/opencv
  #       ref: 4.5.3
  #       path: opencv 
  #       submodules: recursive
  #   - name: Build AppImage
  #     run: |
  #       docker run --network=host --env OPENCV_REPO_DIR=$PWD/opencv -v $PWD:$PWD -w $PWD --privileged --ipc=host centos:7 $PWD/.github/workflows/build-quant-tool-appimage.sh
  #   - name: update
  #     run: sudo apt-get update
  #   - name: opencv
  #     run: sudo apt-get install libopencv-dev
  #   - name: configure
  #     run: mkdir build && cd build && /home/dongdong/actions-runners-x86/test_coverage/help/cmake-3.21.2-linux-x86_64/bin/cmake -DTENGINE_BUILD_EXAMPLES=ON ..
  #   - name: build
  #     run: /home/dongdong/actions-runners-x86/test_coverage/help/cmake-3.21.2-linux-x86_64/bin/cmake --build build -j 2
  #   - name: depends
  #     run: |
  #       actions=/home/dongdong
  #       ln -s ${actions}/ci_test/tengine_test_data/mobilenet.tmfile   mobilenet.tmfile
  #       ln -s ${actions}/ci_test/tengine_test_data/dataset            dataset
  #       ln -s ${actions}/ci_test/images/    images
  #   - name: quant-tools-test
  #     run: |
  #       ./quant_tool_uint8-x86_64.AppImage -m mobilenet.tmfile -o mobilenet_uint8.tmfile -i ./dataset -g 3,224,224 -s 0.017,0.017,0.017 -c 1
  #   - name: uint8-model-test
  #     run: |
  #       ./build/examples/tm_classification_uint8 -m mobilenet_uint8.tmfile -i images/cat.jpg -g 224,224 -s 0.017,0.017,0.017
  #   - name: Upload AppImage
  #     uses: actions/upload-artifact@v2
  #     with:
  #       name: quant_tool_AppImage
  #       path: quant_tool_uint8-x86_64.AppImage

  # publish-releases:
  #   runs-on: x86-server-build-test
  #   if: github.ref == 'refs/heads/tengine-lite'
  #   needs: [linux-x64-cpu-tools-convert, linux-x64-cpu-tools-quant]
  #   steps:
497
  #   - uses: actions/checkout@v3
B
BowShotDS 已提交
498 499 500 501 502 503 504 505 506 507 508 509 510 511
  #   - uses: actions/download-artifact@v2
  #     with:
  #       path: artifacts
  #   - name: Display structure of downloaded files
  #     run: ls -R
  #     working-directory: artifacts
  #   - uses: "marvinpinto/action-automatic-releases@latest"
  #     with:
  #       repo_token: "${{ secrets.GITHUB_TOKEN }}"
  #       automatic_release_tag: "latest"
  #       prerelease: true
  #       title: "Development Build"
  #       files: |
  #         artifacts/**/*.AppImage
D
daquexian 已提交
512