[robotpy] Add build scripts for wpilib and dependencies (#8348)

This gets the majority of projects from mostrobotpy building in this mirror. Projects missing still are cscore and the halsim wrappers.
This commit is contained in:
PJ Reiniger
2025-11-09 13:32:58 -05:00
committed by GitHub
parent 5636b8cd77
commit 892666fbbe
38 changed files with 7273 additions and 92 deletions

View File

@@ -121,3 +121,36 @@ jobs:
name: ${{ matrix.platform }}-bazel-lint-fixes
path: bazel-lint-fixes.patch
if: ${{ failure() }}
robotpy_pregeneration:
name: "Robotpy Pregeneration"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- id: Setup_build_buddy
uses: ./.github/actions/setup-build-buddy
with:
token: ${{ secrets.BUILDBUDDY_API_KEY }}
# You should ensure the headers are correct before trying to pregen files
- name: Test Scan Headers
run: bazel test //... -k --test_tag_filters=robotpy_scan_headers --build_tests_only
shell: bash
- name: Run robotpy pregeneration
run: bazel run //:write_robotpy_files
- name: Check Output
run: git --no-pager diff --exit-code HEAD
- name: Generate diff
run: git diff HEAD > robotpy-pregeneration.patch
if: ${{ failure() }}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform }}-robotpy-pregeneration-fixes
path: robotpy-pregeneration-fixes.patch
if: ${{ failure() }}