@@ -218,107 +218,3 @@ jobs:
218
218
name : BIN-files-for-${{matrix.config}}
219
219
path : /__w/ardupilot/ardupilot/logs
220
220
retention-days : 7
221
-
222
- build-gcc-ap_periph :
223
- needs : build-gcc # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
224
- runs-on : ubuntu-20.04
225
- container : khancyr/ardupilot-dev-base:latest
226
- steps :
227
- # git checkout the PR
228
- - uses : actions/checkout@v2
229
- with :
230
- submodules : ' recursive'
231
- # Put ccache into github cache for faster build
232
- - name : Prepare ccache timestamp
233
- id : ccache_cache_timestamp
234
- run : |
235
- NOW=$(date -u +"%F-%T")
236
- echo "::set-output name=timestamp::${NOW}"
237
- - name : ccache cache files
238
- uses : actions/cache@v2
239
- with :
240
- path : ~/.ccache
241
- key : ${{github.workflow}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
242
- restore-keys : ${{github.workflow}}-ccache- # restore ccache from either previous build on this branch or on master
243
- - name : setup ccache
244
- run : |
245
- mkdir -p ~/.ccache
246
- echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
247
- echo "compression = true" >> ~/.ccache/ccache.conf
248
- echo "compression_level = 6" >> ~/.ccache/ccache.conf
249
- echo "max_size = 400M" >> ~/.ccache/ccache.conf
250
- ccache -s
251
- ccache -z
252
- - name : install 32-bit libraries
253
- run : |
254
- dpkg --add-architecture i386
255
- apt-get update
256
- apt-get install -y gcc-multilib g++-multilib
257
-
258
- - name : build sitl_periph_gps
259
- shell : bash
260
- run : |
261
- PATH="/github/home/.local/bin:$PATH"
262
- ./waf configure --board sitl_periph_gps
263
- ./waf build --target bin/AP_Periph
264
- ccache -s
265
- ccache -z
266
-
267
- autotest-can :
268
- needs : build-gcc-ap_periph # don't try to launch the tests matrix if it doesn't build first, profit from caching for fast build
269
- runs-on : ubuntu-20.04
270
- container :
271
- image : khancyr/ardupilot-dev-base:latest
272
- options : --privileged
273
- strategy :
274
- fail-fast : false # don't cancel if a job from the matrix fails
275
- matrix :
276
- config : [
277
- sitltest-can,
278
- ]
279
-
280
- steps :
281
- # git checkout the PR
282
- - uses : actions/checkout@v2
283
- with :
284
- submodules : ' recursive'
285
- # Put ccache into github cache for faster build
286
- - name : Prepare ccache timestamp
287
- id : ccache_cache_timestamp
288
- run : |
289
- NOW=$(date -u +"%F-%T")
290
- echo "::set-output name=timestamp::${NOW}"
291
- - name : ccache cache files
292
- uses : actions/cache@v2
293
- with :
294
- path : ~/.ccache
295
- key : ${{github.workflow}}-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
296
- restore-keys : ${{github.workflow}}-ccache- # restore ccache from either previous build on this branch or on master
297
- - name : setup ccache
298
- run : |
299
- mkdir -p ~/.ccache
300
- echo "base_dir = ${GITHUB_WORKSPACE}" > ~/.ccache/ccache.conf
301
- echo "compression = true" >> ~/.ccache/ccache.conf
302
- echo "compression_level = 6" >> ~/.ccache/ccache.conf
303
- echo "max_size = 400M" >> ~/.ccache/ccache.conf
304
- ccache -s
305
- ccache -z
306
- - name : install 32-bit libraries
307
- run : |
308
- sudo dpkg --add-architecture i386
309
- sudo apt-get update
310
- sudo apt-get install -y gcc-multilib g++-multilib
311
- - name : setup can-utils
312
- run : |
313
- sudo apt-get update
314
- sudo apt-get -y install can-utils iproute2 linux-modules-extra-$(uname -r)
315
- sudo modprobe vcan
316
- sudo ip link add dev vcan0 type vcan
317
- sudo ip link set up vcan0
318
- - name : test ${{matrix.config}}
319
- env :
320
- CI_BUILD_TARGET : ${{matrix.config}}
321
- shell : bash
322
- run : |
323
- PATH="/github/home/.local/bin:$PATH"
324
- Tools/scripts/build_ci.sh
0 commit comments