Skip to content

Commit

Permalink
Test simulation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
prak132 committed Jan 11, 2025
1 parent 1b75fb5 commit 5456442
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/simulation_check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Simulation Check

on:
push:
branches:
- "**"
pull_request:
branches:
- "**"

jobs:
simulation_check:
runs-on: ubuntu-22.04
container: wpilib/roborio-cross-ubuntu:2025-22.04

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Install Roborio Toolchain
run: ./gradlew installRoborioToolchain

- name: Spotless Check
run: ./gradlew -PenableDesktop simulateExternalNativeDebug
3 changes: 2 additions & 1 deletion src/frc846/include/frc846/robot/GenericCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ class GenericCommandGroup
private:
frc2::InstantCommand end_command_addition{[&] {
Log("Command group ending. Took {} ms to complete.",
(frc846::wpilib::CurrentFPGATime() - command_start_time_).to<double>());
(frc846::wpilib::CurrentFPGATime() - command_start_time_)
.template to<double>());
}};

frc2::InstantCommand start_command_addition{[&] {
Expand Down

0 comments on commit 5456442

Please sign in to comment.