From 58442356ad173ec962bb0f2082de98cac18b02f4 Mon Sep 17 00:00:00 2001 From: Jenna Tripoli Date: Sat, 29 Nov 2025 17:29:33 -0800 Subject: [PATCH 1/6] Basic workflow to build robot code --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ff7cce9 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +# This is a basic workflow to build robot code. +name: CI +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the main branch. +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +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 + # This grabs the WPILib docker container + 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 + - uses: actions/checkout@v4 + # Declares the repository safe and not under dubious ownership. + - name: Add repository to git safe directories + run: git config --global --add safe.directory $GITHUB_WORKSPACE + # Grant execute permission for gradlew + - name: Grant execute permission for gradlew + run: chmod +x gradlew + # Runs a single command using the runners shell + - name: Compile and run tests on robot code + run: ./gradlew build From 6ac68b93a70bd74df3b22d3f327352294323a5a7 Mon Sep 17 00:00:00 2001 From: Jenna Tripoli Date: Sat, 29 Nov 2025 19:01:27 -0800 Subject: [PATCH 2/6] Rename workflow --- .github/workflows/build.yml | 20 ++++++++++++++++++++ .github/workflows/main.yml | 30 ------------------------------ 2 files changed, 20 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..55e5318 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-22.04 + container: wpilib/roborio-cross-ubuntu:2025-22.04 + steps: + - uses: actions/checkout@v4 + - name: Add repository to git safe directories + run: git config --global --add safe.directory $GITHUB_WORKSPACE + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Compile and run tests on robot code + run: ./gradlew build diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index ff7cce9..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This is a basic workflow to build robot code. -name: CI -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the main branch. -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -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 - # This grabs the WPILib docker container - 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 - - uses: actions/checkout@v4 - # Declares the repository safe and not under dubious ownership. - - name: Add repository to git safe directories - run: git config --global --add safe.directory $GITHUB_WORKSPACE - # Grant execute permission for gradlew - - name: Grant execute permission for gradlew - run: chmod +x gradlew - # Runs a single command using the runners shell - - name: Compile and run tests on robot code - run: ./gradlew build From a219b0d2a7cdc89fdefc254adb94630f0554d2e8 Mon Sep 17 00:00:00 2001 From: Jenna Tripoli Date: Sat, 29 Nov 2025 19:04:44 -0800 Subject: [PATCH 3/6] Rename workflow --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 55e5318..81478ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build +name: Build Robot Code on: push: From ac1c974412c1764bf530e734b4e5ab89ec6ccf14 Mon Sep 17 00:00:00 2001 From: Don Sawdai Date: Sat, 29 Nov 2025 20:25:30 -0800 Subject: [PATCH 4/6] Moved RobotScoringPosition spreadsheet to project root folder --- ...coringPositions.ods => RobotScoringPositions.ods | Bin 1 file changed, 0 insertions(+), 0 deletions(-) rename src/RobotScoringPositions.ods => RobotScoringPositions.ods (100%) diff --git a/src/RobotScoringPositions.ods b/RobotScoringPositions.ods similarity index 100% rename from src/RobotScoringPositions.ods rename to RobotScoringPositions.ods From 905e57b038ec0d2a6efced3141e7c56ecb81c0b0 Mon Sep 17 00:00:00 2001 From: Don Sawdai Date: Sat, 29 Nov 2025 20:28:52 -0800 Subject: [PATCH 5/6] Bad push. This will intentionally not compile. --- src/main/java/frc/robot/RobotContainer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 888a864..b8bd335 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -76,6 +76,7 @@ public class RobotContainer { * The container for the robot. Contains subsystems, OI devices, and commands. */ public RobotContainer() { + Darn I hate syntax errors DataLogUtil.writeMessageEcho("RobotContainer: Constructor, Version =", Constants.bcrRobotCodeVersion); SignalLogger.enableAutoLogging(false); From 65f2f0bbf9e137eaf2f7bc72466ef70b4b8cbcbb Mon Sep 17 00:00:00 2001 From: Don Sawdai Date: Sat, 29 Nov 2025 20:31:02 -0800 Subject: [PATCH 6/6] Revert "Bad push. This will intentionally not compile." This reverts commit 905e57b038ec0d2a6efced3141e7c56ecb81c0b0. --- src/main/java/frc/robot/RobotContainer.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index b8bd335..888a864 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -76,7 +76,6 @@ public class RobotContainer { * The container for the robot. Contains subsystems, OI devices, and commands. */ public RobotContainer() { - Darn I hate syntax errors DataLogUtil.writeMessageEcho("RobotContainer: Constructor, Version =", Constants.bcrRobotCodeVersion); SignalLogger.enableAutoLogging(false);