blob: e07e8e199b5cb5b1b031e8dac62ea509541c2157 [file] [log] [blame]
Austin Schuh168524c2020-12-27 22:43:42 -08001env:
Philipp Schrader6efe5732022-02-12 15:11:13 -08002 STARTUP: --max_idle_secs=0
James Kuszmaul06d08062024-01-17 20:37:26 -08003 COMMON: -c opt --stamp=no --curses=yes --symlink_prefix=/ --remote_cache=grpc://data-fast:9092 --repo_env=FRC971_RUNNING_IN_CI=1 --repository_cache=~/.cache/bazel_repository --experimental_repository_cache_hardlinks=true
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
James Kuszmaula3267ac2024-01-19 21:50:35 -080015 - tools/bazel ${STARTUP} --output_base=../k8_output_base run ${COMMON} --config=k8 //tools/lint:run-ci
Philipp Schrader773577f2021-12-17 23:45:39 -080016
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
James Kuszmaula3267ac2024-01-19 21:50:35 -080025 - tools/bazel ${STARTUP} --output_base=../common_output_base build ${COMMON} --config=roborio ${ROBORIO_TARGETS}
Austin Schuh168524c2020-12-27 22:43:42 -080026
Philipp Schraderf1bbf342022-02-05 14:30:15 -080027 - label: "arm64"
28 commands:
29 - tools/ci/clean-disk.sh
James Kuszmaula3267ac2024-01-19 21:50:35 -080030 - tools/bazel ${STARTUP} --output_base=../common_output_base build ${COMMON} --config=arm64 ${TARGETS}
Philipp Schraderf1bbf342022-02-05 14:30:15 -080031
Austin Schuh168524c2020-12-27 22:43:42 -080032 - label: "cortex-m4f"
Austin Schuh512b98f2020-12-28 13:12:16 -080033 commands:
34 - tools/ci/clean-disk.sh
James Kuszmaula3267ac2024-01-19 21:50:35 -080035 - tools/bazel ${STARTUP} --output_base=../common_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
James Kuszmaula3267ac2024-01-19 21:50:35 -080040 - tools/bazel ${STARTUP} --output_base=../common_output_base build ${COMMON} --config=rp2040 ${RP2040_TARGETS}