From be62e72c4488ceea541aaa06e940a357f89291de Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Mon, 23 Mar 2026 20:19:09 -0500 Subject: [PATCH 01/22] Made build validation use our variables --- .github/workflows/Build Validation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Build Validation.yml b/.github/workflows/Build Validation.yml index 7a42c9a..5ebf3b4 100644 --- a/.github/workflows/Build Validation.yml +++ b/.github/workflows/Build Validation.yml @@ -19,9 +19,9 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on - runs-on: ubuntu-22.04 + runs-on: ${{ vars.RUNNER }} # This grabs the WPILib docker container - container: wpilib/roborio-cross-ubuntu:2025-22.04 + container: ${{ vars.CONTAINER }} steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v6 From dfd8457549c4535ff7fc11e8198b860dd474b6db Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Mon, 23 Mar 2026 20:20:33 -0500 Subject: [PATCH 02/22] Made formatter use WPILIB Container --- .github/workflows/Formatter.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index 744e1ce..e0ac3ae 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -17,7 +17,9 @@ on: jobs: spotless-check: # The type of runner that the job will run on - runs-on: ubuntu-22.04 + runs-on: ${{ vars.RUNNER }} + # This grabs the WPILib docker container + container: ${{ vars.CONTAINER }} # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it @@ -37,12 +39,6 @@ jobs: #Only runs if triggered manually if: ${{github.event_name == 'push' }} uses: actions/checkout@v5 - - name: Setup Java - uses: actions/setup-java@v5 - with: - distribution: 'zulu' - java-version: 17 - cache: 'gradle' - name: Check with spotless id: spot-check run: ./gradlew spotlessCheck From 29fb6bb8d4055671df36b0ca0eb8c97307b99e6a Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Mon, 23 Mar 2026 20:36:52 -0500 Subject: [PATCH 03/22] Experiment running on arm --- .github/workflows/Build Validation.yml | 4 ++-- .github/workflows/Formatter.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Build Validation.yml b/.github/workflows/Build Validation.yml index 5ebf3b4..b6fb4b1 100644 --- a/.github/workflows/Build Validation.yml +++ b/.github/workflows/Build Validation.yml @@ -8,7 +8,7 @@ name: Java CI with Gradle, with basic WPILib integration # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the main branch. -on: +on: push: branches: [ "main" ] pull_request: @@ -19,7 +19,7 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on - runs-on: ${{ vars.RUNNER }} + runs-on: ubuntu-22.04-arm # This grabs the WPILib docker container container: ${{ vars.CONTAINER }} steps: diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index e0ac3ae..cca7f16 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -17,7 +17,7 @@ on: jobs: spotless-check: # The type of runner that the job will run on - runs-on: ${{ vars.RUNNER }} + runs-on: ubuntu-22.04-arm # This grabs the WPILib docker container container: ${{ vars.CONTAINER }} # Steps represent a sequence of tasks that will be executed as part of the job From 8093982abdfa951610e2720c450d376dc989bd04 Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Mon, 23 Mar 2026 20:39:15 -0500 Subject: [PATCH 04/22] Revert experiment, test concluded --- .github/workflows/Build Validation.yml | 2 +- .github/workflows/Formatter.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Build Validation.yml b/.github/workflows/Build Validation.yml index b6fb4b1..85b6cb9 100644 --- a/.github/workflows/Build Validation.yml +++ b/.github/workflows/Build Validation.yml @@ -19,7 +19,7 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on - runs-on: ubuntu-22.04-arm + runs-on: ${{ vars.CONTAINER }} # This grabs the WPILib docker container container: ${{ vars.CONTAINER }} steps: diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index cca7f16..b8489ef 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -17,7 +17,7 @@ on: jobs: spotless-check: # The type of runner that the job will run on - runs-on: ubuntu-22.04-arm + runs-on: ${{ vars.CONTAINER }} # This grabs the WPILib docker container container: ${{ vars.CONTAINER }} # Steps represent a sequence of tasks that will be executed as part of the job From 7849998c86c5f52045d11b73cd8e38d887121cc2 Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Mon, 23 Mar 2026 20:53:54 -0500 Subject: [PATCH 05/22] Typo fix 1 --- .github/workflows/Build Validation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Build Validation.yml b/.github/workflows/Build Validation.yml index 85b6cb9..5eeafce 100644 --- a/.github/workflows/Build Validation.yml +++ b/.github/workflows/Build Validation.yml @@ -19,7 +19,7 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on - runs-on: ${{ vars.CONTAINER }} + runs-on: ${{ vars.RUNNER }} # This grabs the WPILib docker container container: ${{ vars.CONTAINER }} steps: From 80b8d3c3e508c27ea001eb7e793232733cb992b6 Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Mon, 23 Mar 2026 20:54:07 -0500 Subject: [PATCH 06/22] Typo fix 2 --- .github/workflows/Formatter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index b8489ef..e0ac3ae 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -17,7 +17,7 @@ on: jobs: spotless-check: # The type of runner that the job will run on - runs-on: ${{ vars.CONTAINER }} + runs-on: ${{ vars.RUNNER }} # This grabs the WPILib docker container container: ${{ vars.CONTAINER }} # Steps represent a sequence of tasks that will be executed as part of the job From fbcdd0ff5ec88c8879ece50823922824d858fc71 Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Mon, 23 Mar 2026 21:01:07 -0500 Subject: [PATCH 07/22] Denoted yearly need to update x1 (1 more to go) --- .github/workflows/Build Validation.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Build Validation.yml b/.github/workflows/Build Validation.yml index 5eeafce..0224865 100644 --- a/.github/workflows/Build Validation.yml +++ b/.github/workflows/Build Validation.yml @@ -18,9 +18,10 @@ on: jobs: # This workflow contains a single job called "build" build: - # The type of runner that the job will run on + # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings runs-on: ${{ vars.RUNNER }} # This grabs the WPILib docker container + # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings container: ${{ vars.CONTAINER }} steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it From 01ca0e03224b5a45394bcc275f73226bfab83fcf Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Mon, 23 Mar 2026 21:01:46 -0500 Subject: [PATCH 08/22] ditto --- .github/workflows/Formatter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index e0ac3ae..6b33e9f 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -16,9 +16,9 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: spotless-check: - # The type of runner that the job will run on + # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings runs-on: ${{ vars.RUNNER }} - # This grabs the WPILib docker container + # This grabs the WPIlib docker container. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings container: ${{ vars.CONTAINER }} # Steps represent a sequence of tasks that will be executed as part of the job steps: From bb24748860a497576dc60e0ec9c78fea0b41e9af Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 08:40:13 -0500 Subject: [PATCH 09/22] Experiment with fallbacks In theory this should work. We don't need to test the unset case here in such a case as evaluation at all means it works, due to the syntax. --- .github/workflows/Formatter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index 6b33e9f..99697c2 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -17,9 +17,9 @@ on: jobs: spotless-check: # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - runs-on: ${{ vars.RUNNER }} + runs-on: ${{ vars.RUNNER }} || ubuntu-22.04 # This grabs the WPIlib docker container. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - container: ${{ vars.CONTAINER }} + container: ${{ vars.CONTAINER }} || wpilib/roborio-cross-ubuntu:2025-22.04 # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it From 29e6facaabb98cdde9a8fbc2f8f00bdfd3c4f4ac Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 10:19:51 -0500 Subject: [PATCH 10/22] further experiments --- .github/workflows/Formatter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index 99697c2..f036932 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -17,9 +17,9 @@ on: jobs: spotless-check: # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - runs-on: ${{ vars.RUNNER }} || ubuntu-22.04 + runs-on: ubuntu-slim # This grabs the WPIlib docker container. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - container: ${{ vars.CONTAINER }} || wpilib/roborio-cross-ubuntu:2025-22.04 + container: ${{ vars.CONTAINER}} # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it From b84b525d570f9e380d7beb597e5ad2222f5ab7bc Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 10:31:27 -0500 Subject: [PATCH 11/22] Update Formatter.yml --- .github/workflows/Formatter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index f036932..c65bb11 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -17,7 +17,7 @@ on: jobs: spotless-check: # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - runs-on: ubuntu-slim + runs-on: ${{vars.RUNNER||'ubuntu-22.04'}} # This grabs the WPIlib docker container. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings container: ${{ vars.CONTAINER}} # Steps represent a sequence of tasks that will be executed as part of the job From 76e2907e66abb810a0cba38aed54d3f60e9b92f8 Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 10:33:21 -0500 Subject: [PATCH 12/22] Update Formatter.yml --- .github/workflows/Formatter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index c65bb11..a24e4db 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -19,7 +19,7 @@ jobs: # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings runs-on: ${{vars.RUNNER||'ubuntu-22.04'}} # This grabs the WPIlib docker container. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - container: ${{ vars.CONTAINER}} + container: ${{vars.CONTAINER||'wpilib/roborio-cross-ubuntu:2025-22.04'}} # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it From d9ac42deb789bd1af3cdbc4d55a501d287ca928e Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 10:34:26 -0500 Subject: [PATCH 13/22] Update Build Validation.yml --- .github/workflows/Build Validation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Build Validation.yml b/.github/workflows/Build Validation.yml index 0224865..79d9154 100644 --- a/.github/workflows/Build Validation.yml +++ b/.github/workflows/Build Validation.yml @@ -19,10 +19,10 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - runs-on: ${{ vars.RUNNER }} + runs-on: ${{ vars.RUNNER||'ubuntu-22.04' }} # This grabs the WPILib docker container # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - container: ${{ vars.CONTAINER }} + container: ${{ vars.CONTAINER||'wpilib/roborio-cross-ubuntu:2025-22.04' }} steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v6 From ecdc12706f80337994fb84412a898afc5d7b17be Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 10:49:07 -0500 Subject: [PATCH 14/22] test --- .github/workflows/Build Validation.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Build Validation.yml b/.github/workflows/Build Validation.yml index 79d9154..7ece72c 100644 --- a/.github/workflows/Build Validation.yml +++ b/.github/workflows/Build Validation.yml @@ -19,11 +19,16 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - runs-on: ${{ vars.RUNNER||'ubuntu-22.04' }} + #TODO: Add back vars.RUNNER|| + runs-on: ${{'ubuntu-latest' }} # This grabs the WPILib docker container # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - container: ${{ vars.CONTAINER||'wpilib/roborio-cross-ubuntu:2025-22.04' }} + # TODO add back: vars.CONTAINER|| + container: ${{ 'wpilib/roborio-cross-ubuntu' }} steps: + - name: Warn if not set + if: vars.RUNNER != 'ubuntu-latest' + run: echo "This step will be skipped on Monday and Wednesday" # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v6 # Declares the repository safe and not under dubious ownership. From 3743198dc653fdf85c44b39a761dde368c8e0b8c Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 10:50:38 -0500 Subject: [PATCH 15/22] Update Build Validation.yml --- .github/workflows/Build Validation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Build Validation.yml b/.github/workflows/Build Validation.yml index 7ece72c..9171d04 100644 --- a/.github/workflows/Build Validation.yml +++ b/.github/workflows/Build Validation.yml @@ -24,7 +24,7 @@ jobs: # This grabs the WPILib docker container # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings # TODO add back: vars.CONTAINER|| - container: ${{ 'wpilib/roborio-cross-ubuntu' }} + container: ${{'wpilib/roborio-cross-ubuntu:2025-22.04' }} steps: - name: Warn if not set if: vars.RUNNER != 'ubuntu-latest' From 428efdef635dfe86734f4fd3f7dfbe0b1115471f Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 10:56:33 -0500 Subject: [PATCH 16/22] Update Build Validation.yml --- .github/workflows/Build Validation.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/Build Validation.yml b/.github/workflows/Build Validation.yml index 9171d04..c31e27c 100644 --- a/.github/workflows/Build Validation.yml +++ b/.github/workflows/Build Validation.yml @@ -18,17 +18,16 @@ on: jobs: # This workflow contains a single job called "build" build: - # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - #TODO: Add back vars.RUNNER|| - runs-on: ${{'ubuntu-latest' }} + # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings + runs-on: ${{vars.RUNNER||'ubuntu-latest' }} # This grabs the WPILib docker container # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - # TODO add back: vars.CONTAINER|| - container: ${{'wpilib/roborio-cross-ubuntu:2025-22.04' }} + container: ${{vars.CONTAINER||'wpilib/roborio-cross-ubuntu:2025-22.04' }} steps: - - name: Warn if not set - if: vars.RUNNER != 'ubuntu-latest' - run: echo "This step will be skipped on Monday and Wednesday" + #THIS ALWAYS RUNS, TODO FIX + - name: Warn if runner is not set + #if: vars.RUNNER == 'ubuntu-latest' + run: echo "::warning ::The RUNNER variable is not set" # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v6 # Declares the repository safe and not under dubious ownership. From 53276dde0444624dfb31e9d1bf6404a21b713811 Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 12:23:57 -0500 Subject: [PATCH 17/22] Update Build Validation.yml --- .github/workflows/Build Validation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Build Validation.yml b/.github/workflows/Build Validation.yml index c31e27c..8a0126c 100644 --- a/.github/workflows/Build Validation.yml +++ b/.github/workflows/Build Validation.yml @@ -26,7 +26,7 @@ jobs: steps: #THIS ALWAYS RUNS, TODO FIX - name: Warn if runner is not set - #if: vars.RUNNER == 'ubuntu-latest' + if: vars.RUNNER == 'ubuntu-latest' run: echo "::warning ::The RUNNER variable is not set" # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v6 From 6ae83b17f7790ea2f82432feccdda543375fa7fb Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 12:24:43 -0500 Subject: [PATCH 18/22] Update Formatter.yml --- .github/workflows/Formatter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index a24e4db..a5e59bf 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -17,7 +17,7 @@ on: jobs: spotless-check: # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - runs-on: ${{vars.RUNNER||'ubuntu-22.04'}} + runs-on: ${{vars.RUNNER||'ubuntu-latest'}} # This grabs the WPIlib docker container. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings container: ${{vars.CONTAINER||'wpilib/roborio-cross-ubuntu:2025-22.04'}} # Steps represent a sequence of tasks that will be executed as part of the job From b7139d41907f62f7688f589c488f7cb7100ed2cb Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 13:33:15 -0500 Subject: [PATCH 19/22] Added more warnings. --- .github/workflows/Build Validation.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Build Validation.yml b/.github/workflows/Build Validation.yml index 8a0126c..976a8b5 100644 --- a/.github/workflows/Build Validation.yml +++ b/.github/workflows/Build Validation.yml @@ -18,16 +18,20 @@ on: jobs: # This workflow contains a single job called "build" build: - # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings + # The type of runner that the job will run on. runs-on: ${{vars.RUNNER||'ubuntu-latest' }} # This grabs the WPILib docker container # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings container: ${{vars.CONTAINER||'wpilib/roborio-cross-ubuntu:2025-22.04' }} steps: - #THIS ALWAYS RUNS, TODO FIX + # THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings alongside the container - name: Warn if runner is not set if: vars.RUNNER == 'ubuntu-latest' run: echo "::warning ::The RUNNER variable is not set" + #AS SAID ABOVE, THIS MUST BE SET YEARLY + - name: Warn if container is not set + if: vars.CONTAINER == 'wpilib/roborio-cross-ubuntu:2025-22.04' + run: echo "::warning ::The CONTAINER variable is not set" # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v6 # Declares the repository safe and not under dubious ownership. From 7bd9e2f1c5f48da2e1cf2f60018b5941b287dd1e Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 13:33:52 -0500 Subject: [PATCH 20/22] Removed duplication --- .github/workflows/Build Validation.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/Build Validation.yml b/.github/workflows/Build Validation.yml index 976a8b5..2bdaa8d 100644 --- a/.github/workflows/Build Validation.yml +++ b/.github/workflows/Build Validation.yml @@ -21,7 +21,6 @@ jobs: # The type of runner that the job will run on. runs-on: ${{vars.RUNNER||'ubuntu-latest' }} # This grabs the WPILib docker container - # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings container: ${{vars.CONTAINER||'wpilib/roborio-cross-ubuntu:2025-22.04' }} steps: # THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings alongside the container From b60d7f005bd8c10152c96cd31ac38c6c3683660b Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 13:55:47 -0500 Subject: [PATCH 21/22] Update Formatter.yml --- .github/workflows/Formatter.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index a5e59bf..a4e1b4a 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -19,26 +19,25 @@ jobs: # The type of runner that the job will run on. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings runs-on: ${{vars.RUNNER||'ubuntu-latest'}} # This grabs the WPIlib docker container. THIS MUST BE SET YEARLY PER https://hub.docker.com/r/wpilib/roborio-cross-ubuntu in repo settings - container: ${{vars.CONTAINER||'wpilib/roborio-cross-ubuntu:2025-22.04'}} + container: ${{vars.CONTAINER||'wpilib/roborio-cross-ubuntu:2025-24.04'}} # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - name: Checkout repo (Pull Request) - #Checks if the event was trigged by a pull request, this step will be skipped if not. - if: ${{ github.event_name == 'pull_request' }} + - name: Checkout repository + #Uses the built-in checkout action + if: ${{github.event_name != 'pull_request'}} + uses: actions/checkout@v5 + + - name: Checkout repository (Pull Request Specific) + #Checks if the event was triggered by a pull request. + if: ${{github.event_name == 'pull_request'}} uses: actions/checkout@v5 with: #Sets up branch system properly per https://github.com/marketplace/actions/add-commit#working-with-prs repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.ref }} - - name: Checkout repo (Manually Run) - #Only runs if triggered manually - if: ${{github.event_name == 'workflow_dispatch' }} - uses: actions/checkout@v5 - - name: Checkout repo (Push to main) - #Only runs if triggered manually - if: ${{github.event_name == 'push' }} - uses: actions/checkout@v5 + run: echo Trigged by ${{ github.event_name }} + - name: Check with spotless id: spot-check run: ./gradlew spotlessCheck @@ -47,7 +46,7 @@ jobs: run: ./gradlew spotlessApply - name: Commit changes if: ${{ failure() && steps.spot-check.conclusion == 'failure' }} - uses: EndBug/add-and-commit@v9 + uses: EndBug/add-and-commit@v10 with: default_author: github_actions message: 'Formatted code using spotless.' From cd1df6ebcc426ce637f7ad32fdd0b184084e86e3 Mon Sep 17 00:00:00 2001 From: GreenStar <77800979+GreatGreenStar@users.noreply.github.com> Date: Tue, 24 Mar 2026 13:57:46 -0500 Subject: [PATCH 22/22] remove unneeded run --- .github/workflows/Formatter.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/Formatter.yml b/.github/workflows/Formatter.yml index a4e1b4a..c72334f 100644 --- a/.github/workflows/Formatter.yml +++ b/.github/workflows/Formatter.yml @@ -36,7 +36,6 @@ jobs: #Sets up branch system properly per https://github.com/marketplace/actions/add-commit#working-with-prs repository: ${{ github.event.pull_request.head.repo.full_name }} ref: ${{ github.event.pull_request.head.ref }} - run: echo Trigged by ${{ github.event_name }} - name: Check with spotless id: spot-check