mirror of
				https://github.com/raylib-cs/raylib-cs
				synced 2025-10-29 05:59:51 -04:00 
			
		
		
		
	Run tests/build examples at start of build.yml
This commit is contained in:
		
							
								
								
									
										21
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -9,7 +9,7 @@ on: | ||||
|       - '.github/ISSUE_TEMPLATE/**' | ||||
|   workflow_dispatch: | ||||
| jobs: | ||||
|   prepare: | ||||
|   build: | ||||
|     runs-on: ubuntu-latest | ||||
|     outputs: | ||||
|       version: ${{ steps.version.outputs.version }} | ||||
| @@ -18,6 +18,17 @@ jobs: | ||||
|       - name: checkout repository | ||||
|         uses: actions/checkout@v3 | ||||
|  | ||||
|       - name: setup dotnet | ||||
|         uses: actions/setup-dotnet@v3 | ||||
|         with: | ||||
|           dotnet-version: 6.0.x | ||||
|  | ||||
|       - name: build and run tests | ||||
|         run: dotnet test Raylib-cs.Tests -c Release | ||||
|  | ||||
|       - name: build examples desktop | ||||
|         run: dotnet build Examples -c Release | ||||
|  | ||||
|       - name: check raylib version | ||||
|         id: version | ||||
|         shell: bash | ||||
| @@ -176,7 +187,7 @@ jobs: | ||||
|   publish: | ||||
|     runs-on: ubuntu-latest | ||||
|     needs: | ||||
|       - prepare | ||||
|       - build | ||||
|       - build-android | ||||
|       - build-linux | ||||
|       - build-osx | ||||
| @@ -251,12 +262,6 @@ jobs: | ||||
|       - name: Restore workload | ||||
|         run: dotnet workload restore | ||||
|  | ||||
|       - name: Build and run tests | ||||
|         run: dotnet test Raylib-cs.Tests -c Release | ||||
|  | ||||
|       - name: Build examples desktop | ||||
|         run: dotnet build Examples -c Release | ||||
|  | ||||
|       - name: Build examples android | ||||
|         run: dotnet build Examples.Android -c Release | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user