chore: update to gradle 9.3 in wizard #3110
Workflow file for this run
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 | |
| on: | |
| push: | |
| branches: ['*'] # Run on any pushed branch, but not on any pushed tag | |
| paths-ignore: | |
| - '**.md' | |
| pull_request: | |
| paths-ignore: | |
| - '**.md' | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: # 'macos-14' is arm64 | |
| os: ['ubuntu-22.04', 'macos-14', 'windows-2022'] | |
| java: [ 21 ] | |
| additional-maven-args: [''] | |
| additional-label: [''] | |
| include: | |
| - os: ubuntu-22.04 | |
| java: 21 | |
| additional-maven-args: -Pstrict-jdk-21 | |
| additional-label: -strict | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: 'Check out repository' | |
| uses: actions/checkout@v6 | |
| - name: 'Set up Java ${{ matrix.java }}' | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'temurin' | |
| - name: 'Cache Maven packages' | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ matrix.java }}${{ matrix.additional-label }}-${{ hashFiles('**/pom.xml', '**/*.target') }} | |
| - name: Set Maven Home environment variable | |
| run: echo "MAVEN_WRAPPER_HOME=$(./mvnw --version | grep "Maven home:" | cut -c 13-)" >> "$GITHUB_ENV" | |
| if: runner.os != 'Windows' | |
| - name: Set Maven Home environment variable on Windows | |
| run: echo "MAVEN_WRAPPER_HOME=$(./mvnw --version | grep "Maven home:" | cut -c 13-)" | Out-File -FilePath $env:GITHUB_ENV -Append | |
| # In Windows the syntax for setting environment variable is different | |
| if: runner.os == 'Windows' | |
| - name: Build and test | |
| uses: coactions/[email protected] | |
| with: | |
| run: > | |
| ./mvnw "-Dmaven.home=${{ env.MAVEN_WRAPPER_HOME }}" | |
| clean verify | |
| -f org.eclipse.xtext.full.releng | |
| -B -fae -PuseJenkinsSnapshots | |
| ${{ matrix.additional-maven-args }} | |
| - name: Archive Test Results | |
| uses: actions/[email protected] | |
| if: always() | |
| with: | |
| name: test-results-${{ runner.os }}-${{ matrix.java }}${{ matrix.additional-label }} | |
| path: '**/*.tests/target/surefire-reports' | |
| - name: Archive Logs | |
| uses: actions/[email protected] | |
| if: ${{ failure() || cancelled() }} | |
| with: | |
| name: logs-${{ runner.os }}-${{ matrix.java }}${{ matrix.additional-label }} | |
| path: '**/*.tests/target/**/*.log' | |
| build-maven-artifacts: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: 'Check out repository' | |
| uses: actions/checkout@v6 | |
| - name: 'Set up Java' | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: 'temurin' | |
| - name: 'Cache Maven packages' | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml', '**/*.target') }} | |
| - name: Set Maven Home environment variable | |
| run: echo "MAVEN_WRAPPER_HOME=$(./mvnw --version | grep "Maven home:" | cut -c 13-)" >> "$GITHUB_ENV" | |
| - name: Build Maven artifacts | |
| run: > | |
| ./mvnw "-Dmaven.home=${{ env.MAVEN_WRAPPER_HOME }}" | |
| clean verify | |
| -f org.eclipse.xtext.maven.releng | |
| -B -fae -PuseJenkinsSnapshots | |
| -Pstrict-jdk-21 | |
| - name: Archive Test Results | |
| uses: actions/[email protected] | |
| if: always() | |
| with: | |
| name: build-maven-artifacts-test-results-${{ runner.os }} | |
| path: '**/target/surefire-reports' | |
| - name: Archive Logs | |
| uses: actions/[email protected] | |
| if: ${{ failure() || cancelled() }} | |
| with: | |
| name: build-maven-artifacts-logs-${{ runner.os }} | |
| path: '**/target/**/*.log' | |
| event_file: | |
| name: "Upload Event File" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Upload | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: Event File | |
| path: ${{ github.event_path }} |