|
| 1 | +name: gst-inference CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + - dev-* |
| 8 | + pull_request: |
| 9 | + branches: |
| 10 | + - dev-* |
| 11 | + |
| 12 | +jobs: |
| 13 | + build_autotools: |
| 14 | + runs-on: ubuntu-18.04 |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + container: ["ridgerun/r2inference-ubuntu-18.04:v0.1.5", "ridgerun/r2inference-ubuntu-16.04:v0.3.1"] |
| 18 | + container: |
| 19 | + image: ${{ matrix.container }} |
| 20 | + env: |
| 21 | + PREFIX: /usr/lib/x86_64-linux-gnu/ |
| 22 | + CFLAGS: -Werror |
| 23 | + CXXFLAGS: -Werror |
| 24 | + steps: |
| 25 | + - uses: actions/checkout@v2 |
| 26 | + - name: Build backend |
| 27 | + run: | |
| 28 | + tar -C /usr/local -xzf /root/r2inference/backends/tensorflow/v1.15.0/libtensorflow-cpu-linux-x86_64-1.15.0.tar.gz |
| 29 | + ldconfig |
| 30 | + - name: Checkout r2i repo |
| 31 | + uses: actions/checkout@master |
| 32 | + with: |
| 33 | + repository: RidgeRun/r2inference |
| 34 | + - name: Build r2i |
| 35 | + run: | |
| 36 | + NOCONFIGURE=1 ./autogen.sh |
| 37 | + ./configure --disable-docs --enable-tensorflow |
| 38 | + make |
| 39 | + make install |
| 40 | + - name: Checkout gst-inference repo |
| 41 | + uses: actions/checkout@v2 |
| 42 | + with: |
| 43 | + submodules: true |
| 44 | + - name: Build gst-inference |
| 45 | + run: | |
| 46 | + CFLAGS="${{ env.CFLAGS }}" |
| 47 | + CXXFLAGS="${{ env.CXXFLAGS }}" |
| 48 | + NOCONFIGURE=1 ./autogen.sh |
| 49 | + ./configure --disable-docs --prefix $PREFIX --libdir $PREFIX |
| 50 | + make |
| 51 | + - name: Check gst-inference |
| 52 | + env: |
| 53 | + LD_LIBRARY_PATH: /usr/local/lib/ |
| 54 | + run: make check VERBOSE=1 |
| 55 | + - name: Install gst-inference |
| 56 | + run: | |
| 57 | + make install |
| 58 | + - name: Check gst-inference install |
| 59 | + env: |
| 60 | + LD_LIBRARY_PATH: /usr/local/lib/ |
| 61 | + run: gst-inspect-1.0 inference |
| 62 | + - name: Run GStreamer pipeline |
| 63 | + env: |
| 64 | + ROOT: /root/r2inference/resources/InceptionV1_TensorFlow |
| 65 | + LD_LIBRARY_PATH: /usr/local/lib/ |
| 66 | + run: | |
| 67 | + GST_DEBUG=2,inferencebin:6 gst-launch-1.0 filesrc location=$ROOT/Egyptian_cat.jpg ! jpegparse ! jpegdec ! \ |
| 68 | + inferencebin arch='inceptionv1' model-location=$ROOT/graph_inceptionv1_tensorflow.pb \ |
| 69 | + backend='tensorflow' input-layer='input' output-layer='InceptionV1/Logits/Predictions/Reshape_1' \ |
| 70 | + labels=$ROOT/imagenet_labels.txt crop=false overlay=true filter=-1 ! \ |
| 71 | + fakesink silent=false sync=false async=false -v |
| 72 | + build_meson: |
| 73 | + runs-on: ubuntu-18.04 |
| 74 | + strategy: |
| 75 | + matrix: |
| 76 | + container: ["ridgerun/r2inference-ubuntu-18.04:v0.1.5", "ridgerun/r2inference-ubuntu-16.04:v0.3.1"] |
| 77 | + container: |
| 78 | + image: ${{ matrix.container }} |
| 79 | + env: |
| 80 | + PREFIX: /usr |
| 81 | + CFLAGS: -Werror |
| 82 | + CXXFLAGS: -Werror |
| 83 | + steps: |
| 84 | + - uses: actions/checkout@v2 |
| 85 | + - name: Build backend |
| 86 | + run: | |
| 87 | + tar -C /usr/local -xzf /root/r2inference/backends/tensorflow/v1.15.0/libtensorflow-cpu-linux-x86_64-1.15.0.tar.gz |
| 88 | + ldconfig |
| 89 | + - name: Checkout r2i repo |
| 90 | + uses: actions/checkout@master |
| 91 | + with: |
| 92 | + repository: RidgeRun/r2inference |
| 93 | + - name: Build r2i |
| 94 | + run: | |
| 95 | + CFLAGS="${{ env.CFLAGS }}" |
| 96 | + CXXFLAGS="${{ env.CXXFLAGS }}" |
| 97 | + NOCONFIGURE=1 ./autogen.sh |
| 98 | + ./configure --disable-docs --enable-tensorflow |
| 99 | + make |
| 100 | + make install |
| 101 | + - name: Checkout gst-inference repo |
| 102 | + uses: actions/checkout@v2 |
| 103 | + with: |
| 104 | + submodules: true |
| 105 | + - name: Build gst-inference |
| 106 | + env: |
| 107 | + LD_LIBRARY_PATH: /usr/local/lib/ |
| 108 | + run: | |
| 109 | + meson build --prefix $PREFIX -Denable-gtk-doc=false |
| 110 | + ninja -C build |
| 111 | + - name: Check gst-inference |
| 112 | + env: |
| 113 | + LD_LIBRARY_PATH: /usr/local/lib/ |
| 114 | + run: ninja -C build test -v |
| 115 | + - name: Install gst-inference |
| 116 | + run: | |
| 117 | + ninja -C build install |
| 118 | + - name: Check gst-inference install |
| 119 | + env: |
| 120 | + LD_LIBRARY_PATH: /usr/local/lib/ |
| 121 | + run: gst-inspect-1.0 inference |
| 122 | + - name: Run GStreamer pipeline |
| 123 | + env: |
| 124 | + ROOT: /root/r2inference/resources/InceptionV1_TensorFlow |
| 125 | + LD_LIBRARY_PATH: /usr/local/lib/ |
| 126 | + run: | |
| 127 | + GST_DEBUG=2,inferencebin:6 gst-launch-1.0 filesrc location=$ROOT/Egyptian_cat.jpg ! jpegparse ! jpegdec ! \ |
| 128 | + inferencebin arch='inceptionv1' model-location=$ROOT/graph_inceptionv1_tensorflow.pb \ |
| 129 | + backend='tensorflow' input-layer='input' output-layer='InceptionV1/Logits/Predictions/Reshape_1' \ |
| 130 | + labels=$ROOT/imagenet_labels.txt crop=false overlay=true filter=-1 ! \ |
| 131 | + fakesink silent=false sync=false async=false -v |
0 commit comments