Test workflow
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				CI Meson / Build on ${{ matrix.os }} (1.4.0, ubuntu-20.04) (push) Failing after 2s
				
			
		
			
				
	
				CI Meson / Build on ${{ matrix.os }} (1.4.0, ubuntu-22.04) (push) Failing after 54s
				
			
		
			
				
	
				CI Meson / Build on ${{ matrix.os }} (1.4.0, ubuntu-latest) (push) Failing after 36s
				
			
		
			
				
	
				CI Meson / Build on ${{ matrix.os }} (1.4.0, ubuntu-18.04) (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	CI Meson / Build on ${{ matrix.os }} (1.4.0, ubuntu-20.04) (push) Failing after 2s
				
			CI Meson / Build on ${{ matrix.os }} (1.4.0, ubuntu-22.04) (push) Failing after 54s
				
			CI Meson / Build on ${{ matrix.os }} (1.4.0, ubuntu-latest) (push) Failing after 36s
				
			CI Meson / Build on ${{ matrix.os }} (1.4.0, ubuntu-18.04) (push) Has been cancelled
				
			based on meson sample: https://mesonbuild.com/Continuous-Integration.html
This commit is contained in:
		
							parent
							
								
									09c14a8809
								
							
						
					
					
						commit
						6bd71778d2
					
				
							
								
								
									
										42
									
								
								.gitea/workflows/ci_meson.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								.gitea/workflows/ci_meson.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,42 @@
 | 
			
		||||
name: CI Meson
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
    push:
 | 
			
		||||
        paths:
 | 
			
		||||
            - "**.c"
 | 
			
		||||
            - "**.cpp"
 | 
			
		||||
            - "**.h"
 | 
			
		||||
            - "**.hpp"
 | 
			
		||||
    pull_request:
 | 
			
		||||
        paths:
 | 
			
		||||
            - "**.c"
 | 
			
		||||
            - "**.cpp"
 | 
			
		||||
            - "**.h"
 | 
			
		||||
            - "**.hpp"
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
    build:
 | 
			
		||||
        name: Build on ${{ matrix.os }}
 | 
			
		||||
        runs-on: ${{ matrix.os }}
 | 
			
		||||
        strategy:
 | 
			
		||||
            matrix:
 | 
			
		||||
                os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04]
 | 
			
		||||
                meson_version: ["1.4.0"]
 | 
			
		||||
        steps:
 | 
			
		||||
            - name: Checkout Code
 | 
			
		||||
              uses: actions/checkout@v4
 | 
			
		||||
            - name: Setup Python
 | 
			
		||||
              uses: actions/setup-python@v5
 | 
			
		||||
              with:
 | 
			
		||||
                python-version: '3.x'
 | 
			
		||||
            - name: Install Dependencies
 | 
			
		||||
              run: python -m pip install meson==${{ matrix.meson_version }} ninja
 | 
			
		||||
            - name: Configure Project
 | 
			
		||||
              run: meson setup build
 | 
			
		||||
              env:
 | 
			
		||||
                CC: gcc
 | 
			
		||||
            - name: Compile
 | 
			
		||||
              run: meson compile -C build
 | 
			
		||||
            - name: Run Tests
 | 
			
		||||
              run: meson test -C build/ -v
 | 
			
		||||
            
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user