fix: 修复获取存储IP时的空指针异常 #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI with Maven | |
on: | |
push: | |
branches: | |
- '*' # 所有分支 | |
pull_request: | |
branches: | |
- '*' # 所有分支 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: ['8', '11', '17', '21'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: CatSeedLogin-${{ matrix.java-version }} | |
path: target/*.jar |