mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 03:45:50 +00:00 
			
		
		
		
	I started with really simple pre-commit hooks and will add more on top. Important files: - `.pre-commit-config.yaml` - the config for pre-commit - `.github/workflows/pre-commit.yml` - runs pre-commit hooks in branches and `develop` - `.github/workflows/pre-commit-autoupdate.yml` - autoupdates pre-commit hooks once in a month
		
			
				
	
	
		
			25 lines
		
	
	
		
			688 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			688 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: Build clio
 | 
						|
description: Build clio in build directory
 | 
						|
inputs:
 | 
						|
  target:
 | 
						|
    description: Build target name
 | 
						|
    default: all
 | 
						|
  substract_threads:
 | 
						|
    description: An option for the action get_number_of_threads. See get_number_of_threads
 | 
						|
    required: true
 | 
						|
    default: '0'
 | 
						|
runs:
 | 
						|
  using: composite
 | 
						|
  steps:
 | 
						|
    - name: Get number of threads
 | 
						|
      uses: ./.github/actions/get_number_of_threads
 | 
						|
      id: number_of_threads
 | 
						|
      with:
 | 
						|
        substract_threads: ${{ inputs.substract_threads }}
 | 
						|
 | 
						|
    - name: Build Clio
 | 
						|
      shell: bash
 | 
						|
      run: |
 | 
						|
        cd build
 | 
						|
        cmake --build . --parallel ${{ steps.number_of_threads.outputs.threads_number }} --target ${{ inputs.target }}
 |