From ba9a09ccc33c3babe3ee2563c9902c4ffc17a025 Mon Sep 17 00:00:00 2001 From: Dave Stelts <55215298+dstelts@users.noreply.github.com> Date: Thu, 22 Feb 2024 19:42:27 -0500 Subject: [PATCH 1/4] - added gradle workflow back in --- .github/workflows/gradle.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..8c55838 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,43 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle + +name: Java CI with Gradle + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +# If your gradlew file is contained in a different subfolder, uncomment the following 3 lines +# and add whatever folder it's contained in as "working-directory:" +# defaults: +# run: +# working-directory: + +# 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-latest + + # This grabs the WPILib docker container + container: wpilib/roborio-cross-ubuntu:2022-18.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@v2 + + # 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 \ No newline at end of file From bd5b18fe1943afd6c50119d6b772d40240bb514f Mon Sep 17 00:00:00 2001 From: Dave Stelts <55215298+dstelts@users.noreply.github.com> Date: Thu, 22 Feb 2024 19:50:30 -0500 Subject: [PATCH 2/4] - updating container image for 2024 --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 8c55838..1efecf2 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest # This grabs the WPILib docker container - container: wpilib/roborio-cross-ubuntu:2022-18.04 + container: wpilib/roborio-cross-ubuntu:2024-22.04 # Steps represent a sequence of tasks that will be executed as part of the job steps: From cf213e613bae21a0c8205cf2d58505269222bdde Mon Sep 17 00:00:00 2001 From: Dave Stelts <55215298+dstelts@users.noreply.github.com> Date: Thu, 22 Feb 2024 19:51:08 -0500 Subject: [PATCH 3/4] - using latest checkout action --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1efecf2..c43ff4b 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -32,7 +32,7 @@ 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@v2 + - uses: actions/checkout@v4 # Grant execute permission for gradlew - name: Grant execute permission for gradlew From 598d4bbb6169f45fe1525ad5c1c25e4b603e3873 Mon Sep 17 00:00:00 2001 From: Dave Stelts <55215298+dstelts@users.noreply.github.com> Date: Thu, 22 Feb 2024 19:54:33 -0500 Subject: [PATCH 4/4] - added README with build workflow status badge --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c86cd76 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +[![Java CI with Gradle](https://github.com/Team612/612-2024-Crescendo/actions/workflows/gradle.yml/badge.svg)](https://github.com/Team612/612-2024-Crescendo/actions/workflows/gradle.yml) \ No newline at end of file