优化中国版皮肤检测的性能 #225
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 | |
on: [push] | |
jobs: | |
build: | |
name: Java ${{ matrix.java }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: | |
[ | |
17, | |
19, | |
20, | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: liberica | |
cache: maven | |
- name: Install dependencies | |
run: | | |
git clone --no-tags --depth 1 https://github.com/EaseCation/Network.git target/Network | |
cd target/Network | |
mvn -B clean install | |
- name: Build with Maven | |
run: mvn -B clean package | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v3 | |
if: success() | |
with: | |
name: Nukkit-${{ matrix.java }} | |
path: target/nukkit.jar |