diff --git a/.github/workflows/maven_build_win.yml b/.github/workflows/maven_build_win.yml new file mode 100644 index 00000000..9a6ab3e4 --- /dev/null +++ b/.github/workflows/maven_build_win.yml @@ -0,0 +1,37 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Java CI with Maven + +on: + push: + branches: + - '**' + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: windows-latest + steps: + #Build with java 11 + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: 'maven' + - name: Build with Maven + run: mvn -P examples -B package --file pom.xml -U + + #Build with java 17 + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: 'maven' + - name: Build with Maven + run: mvn -P examples -B package --file pom.xml -U