diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2a90549 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build + +on: + pull_request: + types: [opened, synchronize, reopened, edited, closed] + branches: + - main + + push: + branches: + - main + + + +jobs: + build: + runs-on: ubuntu-latest + + container: wpilib/roborio-cross-ubuntu:2024-22.04 + + steps: + - uses: actions/checkout@v3 + + - name: Add safe directory for git + run: git config --global --add safe.directory $GITHUB_WORKSPACE + + # Grant execute permission for gradlew + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + # Build + - name: Build code + run: ./gradlew compileJava