mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:30:05 +00:00 
			
		
		
		
	Fixes for clang-format-check
This commit is contained in:
		
							parent
							
								
									b1f32ab0f5
								
							
						
					
					
						commit
						71d2345e66
					
				
					 1 changed files with 17 additions and 7 deletions
				
			
		
							
								
								
									
										24
									
								
								.github/workflows/clang-format-check.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.github/workflows/clang-format-check.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -13,18 +13,28 @@ concurrency: | |||
| 
 | ||||
| jobs: | ||||
|   format: | ||||
|     runs-on: ubuntu-latest | ||||
|     runs-on: ubuntu-24.04 | ||||
|     steps: | ||||
| 
 | ||||
|     - name: Checkout | ||||
|       uses: actions/checkout@v4 | ||||
|       with: | ||||
|         path: source | ||||
|         fetch-depth: 0 | ||||
|         submodules: false | ||||
| 
 | ||||
|     - name: Update References | ||||
|       shell: bash | ||||
|       run: | | ||||
|         git fetch origin develop | ||||
| 
 | ||||
|     - name: Setup Ubuntu Environment | ||||
|       shell: bash | ||||
|       run: | | ||||
|         sudo apt-get install clang-format-17 | ||||
| 
 | ||||
|     - name: Check Formatting | ||||
|       uses: jayllyz/clang-format-action@v1 | ||||
|       with: | ||||
|         check: true | ||||
|         clang-version: 17 | ||||
|         base-ref: refs/remotes/origin/develop | ||||
|       shell: bash | ||||
|       run: | | ||||
|         MERGE_BASE=$(git merge-base origin/develop ${{ github.ref }}) | ||||
|         echo "Comparing against ${MERGE_BASE}" | ||||
|         git clang-format-17 --diff --style=file -v ${MERGE_BASE} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat