diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 02e7bba3..ae150afc 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -20,17 +20,12 @@ jobs: uses: actions/checkout@v1 - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: + distribution: 'zulu' java-version: ${{ matrix.java }} + cache: 'maven' - - name: Cache .m2 - uses: actions/cache@v1 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven - name: Prepare mvnw run: chmod +x ./mvnw @@ -38,3 +33,5 @@ jobs: - name: Build run: ./mvnw clean package + + diff --git a/.github/workflows/default_oracle.yml b/.github/workflows/default_oracle.yml index 201845ee..d6892c9b 100644 --- a/.github/workflows/default_oracle.yml +++ b/.github/workflows/default_oracle.yml @@ -1,4 +1,4 @@ -name: default +name: default_oracle on: push: @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest,macos-latest,windows-latest ] - java: [ '8', '11', '17', '21' ] + java: [ '17', '21' ] steps: - name: Checkout Code diff --git a/.github/workflows/default_temurin.yml b/.github/workflows/default_temurin.yml new file mode 100644 index 00000000..04877f37 --- /dev/null +++ b/.github/workflows/default_temurin.yml @@ -0,0 +1,35 @@ +name: default_temurin + +on: + push: + branches: + - '*' + - '**/*' + - '!master' + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest,macos-latest,windows-latest ] + java: [ '8', '11', '17', '21' ] + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: ${{ matrix.java }} + cache: 'maven' + + + - name: Prepare mvnw + run: chmod +x ./mvnw + + - name: Build + run: ./mvnw clean package +