-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check the repository README for details. Contact [email protected] with any questions.
- Loading branch information
Robocubs-Bot
committed
Jan 11, 2025
1 parent
28acf95
commit 3d46113
Showing
37 changed files
with
2,845 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
container: wpilib/roborio-cross-ubuntu:2025-24.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Grant execute permission | ||
run: chmod +x gradlew | ||
- name: Check formatting | ||
run: ./gradlew lint | ||
env: | ||
CI: 'true' | ||
- name: Build and test | ||
run: ./gradlew build |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Thanks to FRC 6328 for the original version of this script | ||
name: Public Release | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 10 * * *" # 10:00 UTC | ||
|
||
jobs: | ||
build: | ||
name: Public Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout private repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Robocubs/2025-RobotPrivate | ||
path: code-private | ||
- name: Checkout public repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Robocubs/2025-RobotPublic | ||
path: code-public | ||
- name: Configure user | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Robocubs-Bot" | ||
- name: Copy files to public | ||
run: | | ||
rm code-private/README.md | ||
mv code-private/README-Public.md code-private/README.md | ||
mv code-private/.github/workflows code-private/.github/workflows_private | ||
rsync -av --delete code-private/ code-public --exclude .git | ||
- name: Create public commit | ||
working-directory: code-public | ||
run: | | ||
git add -A | ||
git diff-index --quiet HEAD || git commit -m "Publish on `TZ=":US/Eastern" date +"%D at %I:%M%p %Z"`" -m "Check the repository README for details. Contact [email protected] with any questions." | ||
- name: Push public commit | ||
working-directory: code-public | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | ||
run: | | ||
git config --unset-all http.https://github.com/.extraheader | ||
git push --set-upstream https://Robocubs-Bot:[email protected]/Robocubs/2025-RobotPublic main |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
# This gitignore has been specially created by the WPILib team. | ||
# If you remove items from this file, intellisense might break. | ||
|
||
### C++ ### | ||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
### Java ### | ||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
### Linux ### | ||
*~ | ||
|
||
# temporary files which can be created if a process still has a handle open of a deleted file | ||
.fuse_hidden* | ||
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Linux trash folder which might appear on any partition or disk | ||
.Trash-* | ||
|
||
# .nfs files are created when an open file is removed but is still being accessed | ||
.nfs* | ||
|
||
### macOS ### | ||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
### VisualStudioCode ### | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
### Windows ### | ||
# Windows thumbnail cache files | ||
Thumbs.db | ||
ehthumbs.db | ||
ehthumbs_vista.db | ||
|
||
# Dump file | ||
*.stackdump | ||
|
||
# Folder config file | ||
[Dd]esktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msix | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
### Gradle ### | ||
.gradle | ||
/build/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!gradle-wrapper.jar | ||
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 | ||
# gradle/wrapper/gradle-wrapper.properties | ||
|
||
# # VS Code Specific Java Settings | ||
# DO NOT REMOVE .classpath and .project | ||
.classpath | ||
.project | ||
.settings/ | ||
bin/ | ||
|
||
# IntelliJ | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
out/ | ||
|
||
# Fleet | ||
.fleet | ||
|
||
# Simulation GUI and other tools window save file | ||
networktables.json | ||
simgui*.json | ||
*-window.json | ||
|
||
# Simulation data log directory | ||
logs/ | ||
|
||
# Folder that has CTRE Phoenix Sim device config storage | ||
ctre_sim/ | ||
|
||
# clangd | ||
/.cache | ||
compile_commands.json | ||
|
||
# Eclipse generated file for annotation processors | ||
.factorypath | ||
|
||
# Version file | ||
src/main/java/frc/robot/BuildConstants.java |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "wpilib", | ||
"name": "WPILib Desktop Debug", | ||
"request": "launch", | ||
"desktop": true | ||
}, | ||
{ | ||
"type": "wpilib", | ||
"name": "WPILib roboRIO Debug", | ||
"request": "launch", | ||
"desktop": false | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"java.configuration.updateBuildConfiguration": "automatic", | ||
"java.server.launchMode": "Standard", | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
"bin/": true, | ||
"**/.classpath": true, | ||
"**/.project": true, | ||
"**/.settings": true, | ||
"**/.factorypath": true, | ||
"**/*~": true | ||
}, | ||
"java.test.config": [ | ||
{ | ||
"name": "WPIlibUnitTests", | ||
"workingDirectory": "${workspaceFolder}/build/jni/release", | ||
"vmargs": [ | ||
"-Djava.library.path=${workspaceFolder}/build/jni/release" | ||
], | ||
"env": { | ||
"LD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release", | ||
"DYLD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release" | ||
} | ||
}, | ||
null | ||
], | ||
"java.test.defaultConfig": "WPIlibUnitTests", | ||
"java.import.gradle.annotationProcessing.enabled": false, | ||
"java.completion.favoriteStaticMembers": [ | ||
"org.junit.Assert.*", | ||
"org.junit.Assume.*", | ||
"org.junit.jupiter.api.Assertions.*", | ||
"org.junit.jupiter.api.Assumptions.*", | ||
"org.junit.jupiter.api.DynamicContainer.*", | ||
"org.junit.jupiter.api.DynamicTest.*", | ||
"org.mockito.Mockito.*", | ||
"org.mockito.ArgumentMatchers.*", | ||
"org.mockito.Answers.*", | ||
"edu.wpi.first.units.Units.*" | ||
], | ||
"java.completion.filteredTypes": [ | ||
"java.awt.*", | ||
"com.sun.*", | ||
"sun.*", | ||
"jdk.*", | ||
"org.graalvm.*", | ||
"io.micrometer.shaded.*", | ||
"java.beans.*", | ||
"java.util.Base64.*", | ||
"java.util.Timer", | ||
"java.sql.*", | ||
"javax.swing.*", | ||
"javax.management.*", | ||
"javax.smartcardio.*", | ||
"edu.wpi.first.math.proto.*", | ||
"edu.wpi.first.math.**.proto.*", | ||
"edu.wpi.first.math.**.struct.*", | ||
null | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"enableCppIntellisense": false, | ||
"currentLanguage": "java", | ||
"projectYear": "2025", | ||
"teamNumber": 1701 | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
# 2025-RobotPublic | ||
# 2025-RobotPublic | ||
|
||
[](https://github.com/Robocubs/2025-RobotPublic/blob/main/LICENSE)  | ||
|
||
This repository is a nightly published copy of 1701's robot code, [inspired by 6328](https://www.chiefdelphi.com/t/frc-6328-mechanical-advantage-2025-build-thread/477314/11). It is intended to be treated as a read-only copy of the code. Please reach out to [email protected] with any questions. |
Oops, something went wrong.