JDK17支持:升级Lombok版本、ByteBuddy版本、新增Shenandoah收集器指标信息 #3689
Workflow file for this run
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: CI | |
on: | |
push: | |
pull_request: | |
branches: | |
- '*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
checkstyle: | |
name: Checkstyle | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: reviewdog/action-setup@v1 | |
with: | |
reviewdog_version: latest | |
- name: download checkstyle | |
run: curl -o checkstyle.jar -L https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.41.1/checkstyle-8.41.1-all.jar | |
- name: checkstyle | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
java -jar checkstyle.jar -c checkstyle.xml -f xml . | reviewdog -f=checkstyle -name="Checkstyle Check" -reporter=github-pr-check -level=error | |
build: | |
runs-on: windows-latest | |
name: build | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'adopt' | |
cache: maven | |
- name: Create License Binary Suffix | |
run: | | |
mvn license:aggregate-add-third-party | |
- name: Build with Maven | |
run: | | |
mvn clean package -P agent -P package -DskipTests | |
mkdir ${{ github.workspace }}/package | |
cp ${{ github.workspace }}/sermant-agent-*.tar ${{ github.workspace }}/package | |
- name: upload package | |
uses: actions/upload-artifact@v1 | |
with: | |
name: sermant | |
path: ${{ github.workspace }}/package |