From 12572e8ba5113698678490773b07919e07ef2491 Mon Sep 17 00:00:00 2001 From: sysnote8main Date: Sun, 29 Dec 2024 08:37:23 +0900 Subject: [PATCH] ci: update workflow java version to AdoptOpenJDK 17 --- .github/workflows/build-test.yml | 23 ------------------- .github/workflows/build.yml | 38 ++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 23 deletions(-) delete mode 100644 .github/workflows/build-test.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml deleted file mode 100644 index 27049be..0000000 --- a/.github/workflows/build-test.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -name: Build Test -"on": [push, workflow_dispatch] - -jobs: - build-test: - name: Build with Java 8 - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - java-version: "8" - distribution: "adopt" - cache: "maven" - - run: java -version - - run: mvn --version - - run: mvn -B package - - - name: Upload a Build Artifact - uses: actions/upload-artifact@v4.4.3 - with: - path: /home/runner/work/KDStatusReloaded/KDStatusReloaded/target/ diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3cb1815 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +--- +name: Build +on: + push: + branches: + - v2 + pull_request: + branches: + - v2 + workflow_dispatch: + +jobs: + build: + name: Build with Java 17 + runs-on: ubuntu-latest + timeout-minutes: 15 + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: "adopt" + java-version: "17" + cache: "maven" + + - name: Java version + run: java -version + + - name: Check maven version + run: mvn --version + + - name: Build + run: mvn -B package + + - name: Upload a Build Artifact + uses: actions/upload-artifact@v4.4.3 + with: + path: target/ \ No newline at end of file