mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 03:45:50 +00:00 
			
		
		
		
	There are 2 things to know about prettier: - it's quite pretty most of the time - it's not configurable
		
			
				
	
	
		
			92 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			92 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Check new libXRPL
 | 
						|
on:
 | 
						|
  repository_dispatch:
 | 
						|
    types: [check_libxrpl]
 | 
						|
 | 
						|
jobs:
 | 
						|
  build:
 | 
						|
    name: Build Clio / `libXRPL ${{ github.event.client_payload.version }}`
 | 
						|
    runs-on: [self-hosted, heavy]
 | 
						|
    container:
 | 
						|
      image: rippleci/clio_ci:latest
 | 
						|
 | 
						|
    steps:
 | 
						|
      - uses: actions/checkout@v4
 | 
						|
        with:
 | 
						|
          fetch-depth: 0
 | 
						|
 | 
						|
      - name: Update libXRPL version requirement
 | 
						|
        shell: bash
 | 
						|
        run: |
 | 
						|
          ./.github/scripts/update-libxrpl-version ${{ github.event.client_payload.version }}
 | 
						|
 | 
						|
      - name: Prepare runner
 | 
						|
        uses: ./.github/actions/prepare_runner
 | 
						|
        with:
 | 
						|
          disable_ccache: true
 | 
						|
 | 
						|
      - name: Setup conan
 | 
						|
        uses: ./.github/actions/setup_conan
 | 
						|
        id: conan
 | 
						|
        with:
 | 
						|
          conan_profile: gcc
 | 
						|
 | 
						|
      - name: Run conan and cmake
 | 
						|
        uses: ./.github/actions/generate
 | 
						|
        with:
 | 
						|
          conan_profile: ${{ steps.conan.outputs.conan_profile }}
 | 
						|
          conan_cache_hit: ${{ steps.restore_cache.outputs.conan_cache_hit }}
 | 
						|
          build_type: Release
 | 
						|
 | 
						|
      - name: Build Clio
 | 
						|
        uses: ./.github/actions/build_clio
 | 
						|
 | 
						|
      - name: Strip tests
 | 
						|
        run: strip build/clio_tests
 | 
						|
 | 
						|
      - name: Upload clio_tests
 | 
						|
        uses: actions/upload-artifact@v4
 | 
						|
        with:
 | 
						|
          name: clio_tests_check_libxrpl
 | 
						|
          path: build/clio_tests
 | 
						|
 | 
						|
  run_tests:
 | 
						|
    name: Run tests
 | 
						|
    needs: build
 | 
						|
    runs-on: [self-hosted, heavy]
 | 
						|
    container:
 | 
						|
      image: rippleci/clio_ci:latest
 | 
						|
 | 
						|
    steps:
 | 
						|
      - uses: actions/download-artifact@v4
 | 
						|
        with:
 | 
						|
          name: clio_tests_check_libxrpl
 | 
						|
 | 
						|
      - name: Run clio_tests
 | 
						|
        run: |
 | 
						|
          chmod +x ./clio_tests
 | 
						|
          ./clio_tests
 | 
						|
 | 
						|
  create_issue_on_failure:
 | 
						|
    name: Create an issue on failure
 | 
						|
    needs: [build, run_tests]
 | 
						|
    if: ${{ always() && contains(needs.*.result, 'failure') }}
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    permissions:
 | 
						|
      contents: write
 | 
						|
      issues: write
 | 
						|
    steps:
 | 
						|
      - uses: actions/checkout@v4
 | 
						|
 | 
						|
      - name: Create an issue
 | 
						|
        uses: ./.github/actions/create_issue
 | 
						|
        env:
 | 
						|
          GH_TOKEN: ${{ github.token }}
 | 
						|
        with:
 | 
						|
          labels: "compatibility,bug"
 | 
						|
          title: "Proposed libXRPL check failed"
 | 
						|
          body: >
 | 
						|
            Clio build or tests failed against `libXRPL ${{ github.event.client_payload.version }}`.
 | 
						|
 | 
						|
            Workflow: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/
 |