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/**' |       - '.github/ISSUE_TEMPLATE/**' | ||||||
|   workflow_dispatch: |   workflow_dispatch: | ||||||
| jobs: | jobs: | ||||||
|   prepare: |   build: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     outputs: |     outputs: | ||||||
|       version: ${{ steps.version.outputs.version }} |       version: ${{ steps.version.outputs.version }} | ||||||
| @@ -18,6 +18,17 @@ jobs: | |||||||
|       - name: checkout repository |       - name: checkout repository | ||||||
|         uses: actions/checkout@v3 |         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 |       - name: check raylib version | ||||||
|         id: version |         id: version | ||||||
|         shell: bash |         shell: bash | ||||||
| @@ -176,7 +187,7 @@ jobs: | |||||||
|   publish: |   publish: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     needs: |     needs: | ||||||
|       - prepare |       - build | ||||||
|       - build-android |       - build-android | ||||||
|       - build-linux |       - build-linux | ||||||
|       - build-osx |       - build-osx | ||||||
| @@ -251,12 +262,6 @@ jobs: | |||||||
|       - name: Restore workload |       - name: Restore workload | ||||||
|         run: dotnet workload restore |         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 |       - name: Build examples android | ||||||
|         run: dotnet build Examples.Android -c Release |         run: dotnet build Examples.Android -c Release | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user