diff --git a/.github/workflows/build-simulation.yml b/.github/workflows/build-simulation.yml new file mode 100644 index 0000000..042d979 --- /dev/null +++ b/.github/workflows/build-simulation.yml @@ -0,0 +1,22 @@ +name: Build (Simulation) + +on: + push: + +jobs: + build: + name: Build (Simulation) + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v5 + - name: Set up JDK 21 + uses: actions/setup-java@v5 + with: + distribution: temurin + java-version: 21 + cache: gradle + - name: Grant execute permission + run: chmod +x gradlew + - name: Build simulation + run: ./gradlew assemble test diff --git a/.github/workflows/build.yml b/.github/workflows/build-systemcore.yml similarity index 51% rename from .github/workflows/build.yml rename to .github/workflows/build-systemcore.yml index 0010805..28e85e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build-systemcore.yml @@ -1,17 +1,17 @@ -name: Build +name: Build (SystemCore) on: push: jobs: build: - name: Build + name: Build (SystemCore) runs-on: ubuntu-latest - container: wpilib/roborio-cross-ubuntu:2024-22.04 + container: wpilib/systemcore-cross-ubuntu-minimal:2027-24.04 steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Grant execute permission run: chmod +x gradlew - name: Build robot code - run: ./gradlew build + run: ./gradlew assemble test diff --git a/.github/workflows/spotless.yml b/.github/workflows/spotless.yml index 3af5405..51de4cb 100644 --- a/.github/workflows/spotless.yml +++ b/.github/workflows/spotless.yml @@ -9,10 +9,10 @@ jobs: # 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 + - uses: actions/checkout@v5 with: fetch-depth: 0 - - uses: actions/setup-java@v4 + - uses: actions/setup-java@v5 with: distribution: 'zulu' java-version: 17