Added the Java Build github workflow #1
This file contains hidden or 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
| name: Java Build | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "**" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 26 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '26' | |
| distribution: 'temurin' | |
| - name: Create output directory | |
| run: mkdir -p out | |
| - name: Compile Java sources | |
| run: javac -d out $(find src -name "*.java") |