blob: 8532a75b8925921074248aa938d93867cd677ac5 [file] [log] [blame]
Austin Schuh168524c2020-12-27 22:43:42 -08001env:
2 STARTUP: --max_idle_secs=0 --watchfs
Philipp Schrader37fdbb62021-12-18 00:30:37 -08003 COMMON: -c opt --stamp=no --curses=yes --symlink_prefix=/ --disk_cache=~/.cache/bazel/disk_cache/ --repo_env=FRC971_RUNNING_IN_CI=1
James Kuszmaulf4bf9fe2021-05-10 22:58:24 -07004 TARGETS: //... @com_github_google_glog//... @com_google_ceres_solver//... @com_github_rawrtc_rawrtc//... @com_google_googletest//...
Austin Schuh168524c2020-12-27 22:43:42 -08005 M4F_TARGETS: //...
Austin Schuh0a96ea32022-01-01 22:29:30 -08006 RP2040_TARGETS: //...
Austin Schuh168524c2020-12-27 22:43:42 -08007 # Sanity check that we are able to build the y2020 roborio code, which confirms
8 # that we have the platform compatibility for the roborio set up correctly.
9 ROBORIO_TARGETS: ${TARGETS} //y2020:download_stripped
10
11steps:
Philipp Schrader773577f2021-12-17 23:45:39 -080012 - label: "lint"
13 commands:
14 - tools/ci/clean-disk.sh
15 - tools/bazel ${STARTUP} --output_base=../lint_output_base run ${COMMON} --config=k8 //tools/lint:run-ci
16
Austin Schuh168524c2020-12-27 22:43:42 -080017 - label: "x86_64"
Austin Schuh512b98f2020-12-28 13:12:16 -080018 commands:
19 - tools/ci/clean-disk.sh
20 - tools/bazel ${STARTUP} --output_base=../k8_output_base test ${COMMON} --config=k8 --config=eigen ${TARGETS}
Austin Schuh168524c2020-12-27 22:43:42 -080021
22 - label: "roborio"
Austin Schuh512b98f2020-12-28 13:12:16 -080023 commands:
24 - tools/ci/clean-disk.sh
25 - tools/bazel ${STARTUP} --output_base=../roborio_output_base build ${COMMON} --config=roborio ${ROBORIO_TARGETS}
Austin Schuh168524c2020-12-27 22:43:42 -080026
27 - label: "armhf-debian"
Austin Schuh512b98f2020-12-28 13:12:16 -080028 commands:
29 - tools/ci/clean-disk.sh
30 - tools/bazel ${STARTUP} --output_base=../armhf-debian_output_base build ${COMMON} --config=armhf-debian ${TARGETS}
Austin Schuh168524c2020-12-27 22:43:42 -080031
32 - label: "cortex-m4f"
Austin Schuh512b98f2020-12-28 13:12:16 -080033 commands:
34 - tools/ci/clean-disk.sh
35 - tools/bazel ${STARTUP} --output_base=../cortex-m4f_output_base build ${COMMON} --config=cortex-m4f ${M4F_TARGETS}
Austin Schuh0a96ea32022-01-01 22:29:30 -080036
37 - label: "rp2040"
38 commands:
39 - tools/ci/clean-disk.sh
40 - tools/bazel ${STARTUP} --output_base=../rp2040_output_base build ${COMMON} --config=rp2040 ${RP2040_TARGETS}