mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 02:01:33 +01:00 
			
		
		
		
	add standalone workflow
This commit is contained in:
		
							parent
							
								
									93d0fe795c
								
							
						
					
					
						commit
						bdbdd7700d
					
				
					 2 changed files with 20 additions and 1 deletions
				
			
		
							
								
								
									
										20
									
								
								.github/workflows/standalone.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/standalone.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | ||||||
|  | name: Standalone | ||||||
|  | 
 | ||||||
|  | on: [push] | ||||||
|  | 
 | ||||||
|  | jobs: | ||||||
|  |   build: | ||||||
|  | 
 | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |      | ||||||
|  |     steps: | ||||||
|  |     - uses: actions/checkout@v1 | ||||||
|  |      | ||||||
|  |     - name: configure | ||||||
|  |       run: cmake -Hstandalone -Bbuild | ||||||
|  | 
 | ||||||
|  |     - name: build | ||||||
|  |       run: cmake --build build/standalone | ||||||
|  | 
 | ||||||
|  |     - name: run | ||||||
|  |       run: ./build/standalone/Greeter | ||||||
|  | @ -37,7 +37,6 @@ CPMAddPackage( | ||||||
| 
 | 
 | ||||||
| # Note: | # Note: | ||||||
| # for single header libraries use `add_library(Greeter INTERFACE)` instead  | # for single header libraries use `add_library(Greeter INTERFACE)` instead  | ||||||
| # To create an executable use `add_executable(Greeter ${headers} ${sources})` |  | ||||||
| add_library(Greeter ${headers} ${sources}) | add_library(Greeter ${headers} ${sources}) | ||||||
| 
 | 
 | ||||||
| # Note: for single header libraries use the following instead: | # Note: for single header libraries use the following instead: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue