runtime-v2: fix the issue where old agents can't parse the process co… #1849
  
    
      This file contains hidden or 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: build | |
| on: | |
| push: | |
| branches: [ 'master' ] | |
| pull_request: | |
| branches: [ 'master' ] | |
| concurrency: | |
| group: ${{ github.ref }}-build | |
| cancel-in-progress: true | |
| jobs: | |
| check-labels: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| skip: ${{ steps.check.outputs.skip }} | |
| steps: | |
| - name: Check PR labels | |
| id: check | |
| run: | | |
| labels=$(jq -r '.pull_request.labels | map(.name) | join(",")' $GITHUB_EVENT_PATH) | |
| if [[ "$labels" == *"[no ci]"* ]]; then | |
| echo "skip=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "skip=false" >> $GITHUB_OUTPUT | |
| fi | |
| if [[ "$labels" == *"don't test"* ]]; then | |
| echo "skip_tests=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "skip_tests=false" >> $GITHUB_OUTPUT | |
| fi | |
| build: | |
| needs: check-labels | |
| if: needs.check-labels.outputs.skip == 'false' | |
| strategy: | |
| matrix: | |
| profile: [ 'jdk17', 'jdk17-aarch64' ] | |
| include: | |
| - jdk_version: '17' | |
| - profile: 'jdk17' | |
| runs_on: ubuntu-latest | |
| - profile: 'jdk17-aarch64' | |
| runs_on: [ linux, ARM64 ] | |
| fail-fast: false | |
| runs-on: ${{ matrix.runs_on }} | |
| steps: | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| with: | |
| driver: docker | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.OSS_DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.OSS_DOCKERHUB_PASSWORD }} | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '${{ matrix.jdk_version }}' | |
| distribution: 'temurin' | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Build and test with Maven | |
| env: | |
| SKIP_DOCKER_TESTS: "true" | |
| run: | | |
| if [[ "${{ needs.check-labels.outputs.skip_tests }}" == "true" ]]; then | |
| ./mvnw -s .github/settings.xml -B clean install -Pgha -Pdocker -P${{ matrix.profile }} -DskipTests | |
| else | |
| ./mvnw -s .github/settings.xml -B clean install -Pgha -Pdocker -Pit -P${{ matrix.profile }} | |
| fi |