From 1bb0b635299040c1ce8e239e9e7ae7b0e89293f5 Mon Sep 17 00:00:00 2001 From: moxiaoying <1159230165@qq.com> Date: Sat, 15 Feb 2025 18:03:18 +0800 Subject: [PATCH] refactor: add java8 compile ci Signed-off-by: moxiaoying <1159230165@qq.com> --- .github/workflows/java8_compile.yml | 35 +++++++++++++++++++++++++++++ pom.xml | 4 ++-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/java8_compile.yml diff --git a/.github/workflows/java8_compile.yml b/.github/workflows/java8_compile.yml new file mode 100644 index 0000000..34b2f10 --- /dev/null +++ b/.github/workflows/java8_compile.yml @@ -0,0 +1,35 @@ +# Copyright 2024 OpenFacade Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: java8 compile +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + java8_compile: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Maven Central Repository + uses: actions/setup-java@v4 + with: + java-version: '8' + distribution: 'temurin' + - name: compile + run: mvn -B clean package -Dmaven.test.skip=true diff --git a/pom.xml b/pom.xml index ab68ab5..f93829f 100644 --- a/pom.xml +++ b/pom.xml @@ -17,8 +17,8 @@ - 17 - 17 + 8 + 8 UTF-8 src/main/java