[Improvement] update Centos and Mac CI

This commit is contained in:
beat4ocean
2025-03-25 19:53:21 +08:00
parent b7a297c85d
commit 0e7b4311a8
2 changed files with 15 additions and 8 deletions

View File

@@ -17,21 +17,27 @@ jobs:
java-version: [21] # Define the JDK versions to test
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'adopt'
distribution: 'temurin'
- name: Cache Maven packages
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: ~/Library/Caches/Maven # macOS Maven cache path
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Install system dependencies
run: |
brew update
brew install cmake
brew install gcc
- name: Build with Maven
run: mvn -B package --file pom.xml