mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 11:55:51 +00:00 
			
		
		
		
	ci: Pass expected_version to build_impl.yml (#2367)
This commit is contained in:
		
							
								
								
									
										1
									
								
								.github/workflows/build_and_test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/build_and_test.yml
									
									
									
									
										vendored
									
									
								
							@@ -77,6 +77,7 @@ jobs:
 | 
				
			|||||||
      upload_clio_server: ${{ inputs.upload_clio_server }}
 | 
					      upload_clio_server: ${{ inputs.upload_clio_server }}
 | 
				
			||||||
      targets: ${{ inputs.targets }}
 | 
					      targets: ${{ inputs.targets }}
 | 
				
			||||||
      analyze_build_time: false
 | 
					      analyze_build_time: false
 | 
				
			||||||
 | 
					      expected_version: ${{ inputs.expected_version }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test:
 | 
					  test:
 | 
				
			||||||
    needs: build
 | 
					    needs: build
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								.github/workflows/build_impl.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/build_impl.yml
									
									
									
									
										vendored
									
									
								
							@@ -195,12 +195,10 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - name: Verify expected version
 | 
					      - name: Verify expected version
 | 
				
			||||||
        if: ${{ inputs.expected_version != '' }}
 | 
					        if: ${{ inputs.expected_version != '' }}
 | 
				
			||||||
 | 
					        shell: bash
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
 | 
					          set -e
 | 
				
			||||||
          EXPECTED_VERSION="clio-${{ inputs.expected_version }}"
 | 
					          EXPECTED_VERSION="clio-${{ inputs.expected_version }}"
 | 
				
			||||||
          if [[ ! -f build/clio_server ]]; then
 | 
					 | 
				
			||||||
            echo "clio_server binary not found"
 | 
					 | 
				
			||||||
            exit 1
 | 
					 | 
				
			||||||
          fi
 | 
					 | 
				
			||||||
          actual_version=$(./build/clio_server --version)
 | 
					          actual_version=$(./build/clio_server --version)
 | 
				
			||||||
          if [[ "$actual_version" != "$EXPECTED_VERSION" ]]; then
 | 
					          if [[ "$actual_version" != "$EXPECTED_VERSION" ]]; then
 | 
				
			||||||
            echo "Expected version '$EXPECTED_VERSION', but got '$actual_version'"
 | 
					            echo "Expected version '$EXPECTED_VERSION', but got '$actual_version'"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user