From 010af385d6bd3a7760db7a493d0a1d54ce7e5362 Mon Sep 17 00:00:00 2001 From: moxiaoying <1159230165@qq.com> Date: Sat, 15 Feb 2025 18:01:08 +0800 Subject: [PATCH] refactor: add jdk8 compile check Signed-off-by: moxiaoying <1159230165@qq.com> Co-authored-by: Zhangjian He --- .github/workflows/java8_compile.yml | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) 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..b93011c --- /dev/null +++ b/.github/workflows/java8_compile.yml @@ -0,0 +1,35 @@ +# Copyright 2025 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 -pl 'pulsar-admin,pulsar-admin-reactive' -am