Austin Schuh | 168524c | 2020-12-27 22:43:42 -0800 | [diff] [blame] | 1 | env: |
| 2 | STARTUP: --max_idle_secs=0 --watchfs |
Philipp Schrader | 37fdbb6 | 2021-12-18 00:30:37 -0800 | [diff] [blame] | 3 | COMMON: -c opt --stamp=no --curses=yes --symlink_prefix=/ --disk_cache=~/.cache/bazel/disk_cache/ --repo_env=FRC971_RUNNING_IN_CI=1 |
James Kuszmaul | f4bf9fe | 2021-05-10 22:58:24 -0700 | [diff] [blame] | 4 | TARGETS: //... @com_github_google_glog//... @com_google_ceres_solver//... @com_github_rawrtc_rawrtc//... @com_google_googletest//... |
Austin Schuh | 168524c | 2020-12-27 22:43:42 -0800 | [diff] [blame] | 5 | M4F_TARGETS: //... |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame^] | 6 | RP2040_TARGETS: //... |
Austin Schuh | 168524c | 2020-12-27 22:43:42 -0800 | [diff] [blame] | 7 | # 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 | |
| 11 | steps: |
Philipp Schrader | 773577f | 2021-12-17 23:45:39 -0800 | [diff] [blame] | 12 | - 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 Schuh | 168524c | 2020-12-27 22:43:42 -0800 | [diff] [blame] | 17 | - label: "x86_64" |
Austin Schuh | 512b98f | 2020-12-28 13:12:16 -0800 | [diff] [blame] | 18 | commands: |
| 19 | - tools/ci/clean-disk.sh |
| 20 | - tools/bazel ${STARTUP} --output_base=../k8_output_base test ${COMMON} --config=k8 --config=eigen ${TARGETS} |
Austin Schuh | 168524c | 2020-12-27 22:43:42 -0800 | [diff] [blame] | 21 | |
| 22 | - label: "roborio" |
Austin Schuh | 512b98f | 2020-12-28 13:12:16 -0800 | [diff] [blame] | 23 | commands: |
| 24 | - tools/ci/clean-disk.sh |
| 25 | - tools/bazel ${STARTUP} --output_base=../roborio_output_base build ${COMMON} --config=roborio ${ROBORIO_TARGETS} |
Austin Schuh | 168524c | 2020-12-27 22:43:42 -0800 | [diff] [blame] | 26 | |
| 27 | - label: "armhf-debian" |
Austin Schuh | 512b98f | 2020-12-28 13:12:16 -0800 | [diff] [blame] | 28 | commands: |
| 29 | - tools/ci/clean-disk.sh |
| 30 | - tools/bazel ${STARTUP} --output_base=../armhf-debian_output_base build ${COMMON} --config=armhf-debian ${TARGETS} |
Austin Schuh | 168524c | 2020-12-27 22:43:42 -0800 | [diff] [blame] | 31 | |
| 32 | - label: "cortex-m4f" |
Austin Schuh | 512b98f | 2020-12-28 13:12:16 -0800 | [diff] [blame] | 33 | 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 Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame^] | 36 | |
| 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} |