add gitea workflow
This commit is contained in:
		
							parent
							
								
									cc5cdbedd3
								
							
						
					
					
						commit
						40fc9c3e0e
					
				
							
								
								
									
										30
									
								
								.gitea/workflows/maven.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								.gitea/workflows/maven.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,30 @@
 | 
			
		||||
name: CMake
 | 
			
		||||
 | 
			
		||||
on: [push]
 | 
			
		||||
 | 
			
		||||
env:
 | 
			
		||||
  BUILD_TYPE: Release
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    runs-on: node16-bullseye
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
 | 
			
		||||
      - name: Prep For Local Builds
 | 
			
		||||
        run: echo "${LOCIP}      gitea.comnenos" >> /etc/hosts
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
 | 
			
		||||
      - name: Install Build Tools
 | 
			
		||||
        run: apt-get update && apt-get -y --no-install-recommends install build-essential openjdk-17-jdk maven maven-ant-helper && echo "********* INSTALLS COMPLETED *********"
 | 
			
		||||
 | 
			
		||||
      - name: Maven Build
 | 
			
		||||
        shell: bash
 | 
			
		||||
        working-directory: ${{runner.workspace}}
 | 
			
		||||
        run: mvn build
 | 
			
		||||
 | 
			
		||||
      - name: Maven Test
 | 
			
		||||
        working-directory: ${{runner.workspace}}
 | 
			
		||||
        shell: bash
 | 
			
		||||
        # Execute the build.  You can specify a specific target with "--target <NAME>"
 | 
			
		||||
        run: mvn test
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user