Fix control flow for labeled blocks #404
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 CI with Gradle | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build: | |
| # Define a matrix to run the job on multiple operating systems | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [windows-latest, ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| # Use Makefile's 'ci' target which handles platform differences | |
| # Windows: builds without tests to avoid Gradle daemon socket errors | |
| # Linux: full build with tests | |
| - name: Build with Make (Windows) | |
| if: runner.os == 'Windows' | |
| shell: cmd | |
| run: make ci | |
| env: | |
| GRADLE_OPTS: "-Dorg.gradle.daemon=false" | |
| - name: Build with Make (Linux) | |
| if: runner.os == 'Linux' | |
| run: make ci | |
| - name: Upload test results | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-${{ matrix.os }} | |
| path: build/reports/tests/test/ |