diff --git a/.github/workflows/win.yml b/.github/workflows/win.yml new file mode 100644 index 0000000000..85c8157be7 --- /dev/null +++ b/.github/workflows/win.yml @@ -0,0 +1,40 @@ +name: Build and Test Snapshot (Windows) +on: + push: + branches: + - master + - "3.0" + - "2.16" + paths-ignore: + - "README.md" + - "release-notes/*" + pull_request: + branches: + - master + - "3.0" + - "2.16" + paths-ignore: + - "README.md" + - "release-notes/*" +permissions: + contents: read + +jobs: + build: + runs-on: 'windows-2022' + strategy: + fail-fast: false + matrix: + java_version: ['8'] + env: + JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1" + steps: + - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 + - name: Set up JDK + uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0 + with: + distribution: 'temurin' + java-version: ${{ matrix.java_version }} + cache: 'maven' + - name: Build + run: cmd /c "mvnw.cmd -B -ff -ntp clean verify"