|
96 | 96 | - name: codecov
|
97 | 97 | run: ./codecov -t ${{settings.CODECOV_TOKEN.access_token}} -C ${{ ci.sha }} -B ${{ ci.head_ref }} -f build/lcov.info
|
98 | 98 |
|
99 |
| - linux-gcc-gpu-lavapipe: |
100 |
| - name: linux-gcc-gpu-lavapipe |
101 |
| - runs-on: |
102 |
| - pool-name: docker |
103 |
| - container: |
104 |
| - image: bkci/ci:ubuntu |
105 |
| - steps: |
106 |
| - - name: checkout |
107 |
| - checkout: self |
108 |
| - with: |
109 |
| - strategy: FRESH_CHECKOUT |
110 |
| - enableGitLfs: false |
111 |
| - |
112 |
| - - name: install-deps |
113 |
| - run: | |
114 |
| - apt-get update |
115 |
| - apt-get install -y lcov libvulkan-dev libxcb-shm0 |
116 |
| - curl https://uploader.codecov.io/verification.gpg | gpg --no-default-keyring --keyring trustedkeys.gpg --import |
117 |
| - curl -Os https://uploader.codecov.io/latest/linux/codecov |
118 |
| - curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM |
119 |
| - curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig |
120 |
| - gpgv codecov.SHA256SUM.sig codecov.SHA256SUM |
121 |
| - shasum -a 256 -c codecov.SHA256SUM |
122 |
| - chmod +x codecov |
123 |
| -
|
124 |
| - - name: cache-lavapipe |
125 |
| - id: cache-lavapipe |
126 |
| - uses: cache@1.* |
127 |
| - with: |
128 |
| - cachePaths: lavapipe-install |
129 |
| - cacheKey: lavapipe-linux-install-20211127-4 |
130 |
| - |
131 |
| - - name: checkout-lavapipe |
132 |
| - if: steps.cache-lavapipe.outputs.cacheHit != 'true' |
133 |
| - checkout: https://github.com/mesa3d/mesa.git |
134 |
| - with: |
135 |
| - pullType: COMMIT_ID |
136 |
| - refName: cd39180cfab20734744b379b085cc3b5c2cecd3a |
137 |
| - localPath: mesa |
138 |
| - enableSubmodule: false |
139 |
| - enableGitLfs: false |
140 |
| - |
141 |
| - - name: lavapipe |
142 |
| - if: steps.cache-lavapipe.outputs.cacheHit != 'true' |
143 |
| - run: | |
144 |
| - echo 'deb-src http://mirrors.cloud.tencent.com/debian bullseye main' | tee -a /etc/apt/sources.list |
145 |
| - echo 'deb-src http://mirrors.cloud.tencent.com/debian bullseye-updates main' | tee -a /etc/apt/sources.list |
146 |
| - apt-get update |
147 |
| - apt-get build-dep -y mesa |
148 |
| - mkdir -p "${{ci.workspace}}/lavapipe-install" |
149 |
| - cd mesa |
150 |
| - mkdir build |
151 |
| - cd build |
152 |
| - meson -Dprefix="${{ci.workspace}}/lavapipe-install" -Dbuildtype=release -Db_lto=true -Db_ndebug=true -Dplatforms="x11" -Ddri3=enabled -Ddri-drivers="" -Dgallium-drivers=swrast -Dgallium-vdpau=disabled -Dgallium-xvmc=disabled -Dgallium-omx=disabled -Dgallium-va=disabled -Dgallium-xa=disabled -Dgallium-opencl=disabled -Dopencl-native=false -Dvulkan-drivers=swrast -Dshader-cache=disabled -Dgles1=disabled -Dgles2=disabled -Dopengl=false -Dgbm=disabled -Dglx=disabled -Degl=disabled -Dllvm=enabled -Dvalgrind=disabled -Dlibunwind=disabled -Dlmsensors=disabled .. |
153 |
| - ninja -j$(nproc) |
154 |
| - ninja install |
155 |
| - find ${{ci.workspace}}/lavapipe-install |
156 |
| - cat ${{ci.workspace}}/lavapipe-install/share/vulkan/icd.d/lvp_icd.x86_64.json |
157 |
| -
|
158 |
| - - name: build |
159 |
| - run: | |
160 |
| - mkdir build && cd build |
161 |
| - cmake -DCMAKE_BUILD_TYPE=debug -DNCNN_COVERAGE=ON -DNCNN_RUNTIME_CPU=OFF -DNCNN_AVX2=ON -DNCNN_AVX512=OFF -DNCNN_XOP=OFF -DNCNN_OPENMP=OFF -DNCNN_VULKAN=ON -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_BUILD_TESTS=ON .. |
162 |
| - cmake --build . -j 4 |
163 |
| - - name: test |
164 |
| - run: | |
165 |
| - export LP_NUM_THREADS=4 |
166 |
| - export VK_ICD_FILENAMES="${{ci.workspace}}/lavapipe-install/share/vulkan/icd.d/lvp_icd.x86_64.json" |
167 |
| - cd build |
168 |
| - ctest --output-on-failure -j 4 |
169 |
| - - name: lcov-collect |
170 |
| - run: | |
171 |
| - cd build |
172 |
| - lcov -d ./src -c -o lcov.info |
173 |
| - lcov -r lcov.info '/usr/*' -o lcov.info |
174 |
| - lcov -r lcov.info '*/build/*' -o lcov.info |
175 |
| - lcov -r lcov.info '*/glslang/*' -o lcov.info |
176 |
| - lcov --list lcov.info |
177 |
| - - name: codecov |
178 |
| - run: ./codecov -t ${{settings.CODECOV_TOKEN.access_token}} -C ${{ ci.sha }} -B ${{ ci.head_ref }} -f build/lcov.info |
179 |
| - |
180 | 99 | linux-gcc-x64:
|
181 | 100 | name: linux-gcc-x64
|
182 | 101 | strategy:
|
|
0 commit comments