Update RBSI to 2026 libraries and breaking changes #88
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| # ------------------------------------------------------------ | |
| # Main build job | |
| # ------------------------------------------------------------ | |
| build: | |
| runs-on: ubuntu-latest | |
| container: wpilib/roborio-cross-ubuntu:2024-22.04 | |
| if: ${{ github.event_name != 'pull_request' || github.event.pull_request == null }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Mark repo as safe for git | |
| run: git config --global --add safe.directory $GITHUB_WORKSPACE | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Set up Gradle cache | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Build robot code | |
| run: ./gradlew build --no-daemon --parallel --build-cache | |
| # ------------------------------------------------------------ | |
| # Spotless job (separate for branch protection) | |
| # ------------------------------------------------------------ | |
| spotless: | |
| runs-on: ubuntu-latest | |
| container: wpilib/roborio-cross-ubuntu:2024-22.04 | |
| # Only run for PRs or pushes targeting main/develop | |
| if: github.base_ref == 'main' || github.base_ref == 'develop' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Set up Gradle cache | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Run Spotless check | |
| run: ./gradlew spotlessCheck --no-daemon --parallel --build-cache |