From 2da0eb126a1fadd53a11ad29f8182022c57dad3d Mon Sep 17 00:00:00 2001 From: lexluo09 <39718951+lexluo09@users.noreply.github.com> Date: Sat, 1 Jun 2024 23:18:42 +0800 Subject: [PATCH] (improvement)(project) add RHEL/CentOS CI (#1074) --- .github/workflows/centos-ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/centos-ci.yml diff --git a/.github/workflows/centos-ci.yml b/.github/workflows/centos-ci.yml new file mode 100644 index 000000000..d25557568 --- /dev/null +++ b/.github/workflows/centos-ci.yml @@ -0,0 +1,33 @@ +name: supersonic RHEL/CentOS CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + container: + image: quay.io/centos/centos:stream8 # 使用 CentOS Stream 8 容器 + + steps: + - uses: actions/checkout@v2 + - name: Install Java and Maven + run: | + dnf install -y java-1.8.0-openjdk-devel maven + java -version + mvn -version + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: Build with Maven + run: mvn -B package --file pom.xml + - name: Test with Maven + run: mvn test \ No newline at end of file