mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 21:17:08 +00:00
(improvement)(project) add RHEL/CentOS CI (#1074)
This commit is contained in:
33
.github/workflows/centos-ci.yml
vendored
Normal file
33
.github/workflows/centos-ci.yml
vendored
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user