From 76939eb4c32db53ec2157cd7ba516fe45458f3b0 Mon Sep 17 00:00:00 2001 From: Josiah Noel <32279667+SentryMan@users.noreply.github.com> Date: Fri, 14 Jun 2024 20:24:57 -0400 Subject: [PATCH] create ea stable workflow --- .github/workflows/jdk-ea-stable.yml | 37 ++++++++++++++ .github/workflows/jdk-ea.yml | 79 +++++++++++++++-------------- 2 files changed, 77 insertions(+), 39 deletions(-) create mode 100644 .github/workflows/jdk-ea-stable.yml diff --git a/.github/workflows/jdk-ea-stable.yml b/.github/workflows/jdk-ea-stable.yml new file mode 100644 index 00000000..88d3a5ed --- /dev/null +++ b/.github/workflows/jdk-ea-stable.yml @@ -0,0 +1,37 @@ + +name: JDK EA Stable + +on: + push: + pull_request: + workflow_dispatch: + schedule: + - cron: '39 1 * * 1,3,5' + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v3 + - name: Set up Java + uses: oracle-actions/setup-java@v1 + with: + website: jdk.java.net + release: ea + version: stable + - name: Maven cache + uses: actions/cache@v3 + env: + cache-name: maven-cache + with: + path: + ~/.m2 + key: build-${{ env.cache-name }} + - name: Maven version + run: mvn --version + - name: Build with Maven + run: mvn package diff --git a/.github/workflows/jdk-ea.yml b/.github/workflows/jdk-ea.yml index 8d631739..3a2fbfc7 100644 --- a/.github/workflows/jdk-ea.yml +++ b/.github/workflows/jdk-ea.yml @@ -1,39 +1,40 @@ - -name: JDK EA - -on: - workflow_dispatch: - schedule: - - cron: '48 0 * * 6' - -jobs: - build: - - runs-on: ${{ matrix.os }} - permissions: - contents: read - packages: write - strategy: - fail-fast: false - matrix: - java_version: [GA,EA] - os: [ubuntu-latest] - - steps: - - uses: actions/checkout@v3 - - name: Set up Java - uses: oracle-actions/setup-java@v1 - with: - website: jdk.java.net - release: ${{ matrix.java_version }} - - name: Maven cache - uses: actions/cache@v3 - env: - cache-name: maven-cache - with: - path: - ~/.m2 - key: build-${{ env.cache-name }} - - name: Build with Maven - run: mvn clean test - + +name: JDK EA + +on: + pull_request: + workflow_dispatch: + schedule: + - cron: '48 0 * * 6' + +jobs: + build: + + runs-on: ${{ matrix.os }} + permissions: + contents: read + packages: write + strategy: + fail-fast: false + matrix: + java_version: [GA,EA] + os: [ubuntu-latest] + + steps: + - uses: actions/checkout@v3 + - name: Set up Java + uses: oracle-actions/setup-java@v1 + with: + website: jdk.java.net + release: ${{ matrix.java_version }} + - name: Maven cache + uses: actions/cache@v3 + env: + cache-name: maven-cache + with: + path: + ~/.m2 + key: build-${{ env.cache-name }} + - name: Build with Maven + run: mvn clean test +