@@ -25,7 +25,7 @@ permissions:
2525
2626jobs :
2727  build_cpu_model_convert :
28-     runs-on : ubuntu-18 .04 
28+     runs-on : ubuntu-20 .04 
2929    strategy :
3030      matrix :
3131        python-version : [3.7] 
3939            torch_version : torch1.9 
4040            torchvision : 0.10.0 
4141    steps :
42-       - uses : actions/checkout@v2  
42+       - uses : actions/checkout@v3  
4343      - name : Set up Python ${{ matrix.python-version }} 
44-         uses : actions/setup-python@v2  
44+         uses : actions/setup-python@v4  
4545        with :
4646          python-version : ${{ matrix.python-version }} 
4747      - name : Install PyTorch 
6363          coverage report -m 
6464
6565   build_cpu_sdk :
66-     runs-on : ubuntu-18 .04 
66+     runs-on : ubuntu-20 .04 
6767    steps :
6868      - name : Checkout repository 
6969        uses : actions/checkout@v3 
@@ -73,16 +73,18 @@ jobs:
7373        run : sudo apt update 
7474      - name : gcc-multilib 
7575        run : | 
76-           sudo apt install gcc-multilib g++-multilib wget libprotobuf-dev protobuf-compiler 
7776          sudo apt update 
78-           sudo apt install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libxrender-dev libc++1-9 libc++abi1-9 
79-           sudo add-apt-repository ppa:ignaciovizzo/opencv3-nonfree 
80-           sudo apt install libopencv-dev lcov wget 
81-           pkg-config --libs opencv 
77+           sudo apt install libopencv-dev lcov wget -y 
8278       - name : Build and run SDK unit test without backend 
8379        run : | 
8480          mkdir -p build && pushd build 
85-           cmake .. -DCMAKE_CXX_COMPILER=g++-7  -DMMDEPLOY_CODEBASES=all    -DMMDEPLOY_BUILD_SDK=ON     -DMMDEPLOY_BUILD_SDK_PYTHON_API=OFF     -DMMDEPLOY_TARGET_DEVICES=cpu   -DMMDEPLOY_COVERAGE=ON  -DMMDEPLOY_BUILD_TEST=ON 
81+           cmake .. \ 
82+             -DMMDEPLOY_CODEBASES=all \ 
83+             -DMMDEPLOY_BUILD_SDK=ON \ 
84+             -DMMDEPLOY_BUILD_SDK_PYTHON_API=OFF \ 
85+             -DMMDEPLOY_TARGET_DEVICES=cpu \ 
86+             -DMMDEPLOY_COVERAGE=ON \ 
87+             -DMMDEPLOY_BUILD_TEST=ON 
8688          make -j2 
8789          mkdir -p mmdeploy_test_resources/transform 
8890          cp ../tests/data/tiger.jpeg mmdeploy_test_resources/transform/ 
@@ -101,49 +103,42 @@ jobs:
101103      - name : update 
102104        run : sudo apt update 
103105      - name : Set up Python 
104-         uses : actions/setup-python@v2  
106+         uses : actions/setup-python@v4  
105107        with :
106108          python-version : 3.8 
107109      - name : gcc-multilib 
108110        run : | 
109111          sh -x tools/scripts/ubuntu_cross_build_aarch64.sh 
110112
111113   build_cuda102 :
112-     runs-on : ubuntu-18 .04 
114+     runs-on : ubuntu-20 .04 
113115    container :
114116      image : pytorch/pytorch:1.9.0-cuda10.2-cudnn7-devel 
115117    env :
116118      FORCE_CUDA : 1 
117119    strategy :
118120      matrix :
119-         python-version : [3.7 ] 
121+         python-version : [3.8 ] 
120122        torch : [1.9.0+cu102] 
121123        mmcv : [1.4.2] 
122124        include :
123125          - torch : 1.9.0+cu102 
124126            torch_version : torch1.9 
125127            torchvision : 0.10.0+cu102 
126128    steps :
127-       - uses : actions/checkout@v2 
128-       - name : Set up Python ${{ matrix.python-version }} 
129-         uses : actions/setup-python@v2 
130-         with :
131-           python-version : ${{ matrix.python-version }} 
129+       - uses : actions/checkout@v3 
132130      - name : Install system dependencies 
133131        run : | 
134132          apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC 
135-           apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libxrender-dev python${{matrix.python-version}}-dev 
136-           apt-get clean 
137-           rm -rf /var/lib/apt/lists/* 
133+           apt-get update && apt-get install -y git 
138134       - name : Install PyTorch 
139135        run : python -m pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html 
140136      - name : Install dependencies 
141137        run : | 
142138          python -V 
139+           python -m pip install -U pip 
143140          python -m pip install mmcv-full==${{matrix.mmcv}} -f https://download.openmmlab.com/mmcv/dist/cu102/${{matrix.torch_version}}/index.html 
144-           CFLAGS=`python -c 'import sysconfig;print("-I"+sysconfig.get_paths()["include"])'` python -m pip install -r requirements.txt 
145-           pip install -U pycuda 
146-           python -m pip install -U numpy 
141+           python -m pip install -r requirements.txt 
147142       - name : Build and install 
148143        run : | 
149144          rm -rf .eggs && python -m pip install -e . 
@@ -155,41 +150,30 @@ jobs:
155150          coverage report -m 
156151
157152   build_cuda111 :
158-     runs-on : ubuntu-18 .04 
153+     runs-on : ubuntu-20 .04 
159154    container :
160155      image : pytorch/pytorch:1.8.0-cuda11.1-cudnn8-devel 
161- 
162156    strategy :
163157      matrix :
164-         python-version : [3.7 ] 
158+         python-version : [3.8 ] 
165159        torch : [1.8.0+cu111] 
166160        mmcv : [1.4.2] 
167161        include :
168162          - torch : 1.8.0+cu111 
169163            torch_version : torch1.8 
170164            torchvision : 0.9.0+cu111 
171- 
172165    steps :
173-       - uses : actions/checkout@v2 
174-       - name : Set up Python ${{ matrix.python-version }} 
175-         uses : actions/setup-python@v2 
176-         with :
177-           python-version : ${{ matrix.python-version }} 
166+       - uses : actions/checkout@v3 
178167      - name : Install system dependencies 
179168        run : | 
180169          apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC 
181-           apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libxrender-dev python${{matrix.python-version}}-dev 
182-           apt-get clean 
183-           rm -rf /var/lib/apt/lists/* 
184-        - name : Install PyTorch 
185-         run : python -m pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html 
170+           apt-get update && apt-get install -y git 
186171       - name : Install dependencies 
187172        run : | 
188173          python -V 
174+           python -m pip install -U pip 
189175          python -m pip install mmcv-full==${{matrix.mmcv}} -f https://download.openmmlab.com/mmcv/dist/cu111/${{matrix.torch_version}}/index.html 
190-           CFLAGS=`python -c 'import sysconfig;print("-I"+sysconfig.get_paths()["include"])'` python -m pip install -r requirements.txt 
191-           pip install -U pycuda 
192-           python -m pip install -U numpy 
176+           python -m pip install -r requirements.txt 
193177       - name : Build and install 
194178        run : | 
195179          rm -rf .eggs && python -m pip install -e . 
0 commit comments