feat: add StringBuilderDemo1.java #36
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: Build and test | |
| on: | |
| push | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up JDK 26 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '26' | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Build the project | |
| run: | | |
| java --version | |
| chmod +x gradlew | |
| ./gradlew compileJava shadowJar | |
| - name: Upload build directory | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: debug | |
| path: app/build |