mirror of
				https://github.com/raylib-cs/raylib-cs
				synced 2025-11-04 05:16:42 -05:00 
			
		
		
		
	Update build.yml
This commit is contained in:
		
							
								
								
									
										36
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										36
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -3,10 +3,10 @@ on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches: master
 | 
			
		||||
  pull_request:
 | 
			
		||||
    branches: '*'
 | 
			
		||||
    branches: "*"
 | 
			
		||||
    paths-ignore:
 | 
			
		||||
      - 'README.md'
 | 
			
		||||
      - '.github/ISSUE_TEMPLATE/**'
 | 
			
		||||
      - "README.md"
 | 
			
		||||
      - ".github/ISSUE_TEMPLATE/**"
 | 
			
		||||
  workflow_dispatch:
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
@@ -16,7 +16,7 @@ jobs:
 | 
			
		||||
      pkgversion: ${{ steps.version.outputs.pkgversion }}
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: checkout repository
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
      - name: check raylib version
 | 
			
		||||
        id: version
 | 
			
		||||
@@ -30,10 +30,10 @@ jobs:
 | 
			
		||||
    needs: build
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: checkout repository
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
      - name: setup dotnet
 | 
			
		||||
        uses: actions/setup-dotnet@v3
 | 
			
		||||
        uses: actions/setup-dotnet@v4
 | 
			
		||||
        with:
 | 
			
		||||
          dotnet-version: 6.0.x
 | 
			
		||||
 | 
			
		||||
@@ -57,7 +57,7 @@ jobs:
 | 
			
		||||
        run: dotnet test Raylib-cs.Tests -c Release
 | 
			
		||||
 | 
			
		||||
      - name: upload build
 | 
			
		||||
        uses: actions/upload-artifact@v3
 | 
			
		||||
        uses: actions/upload-artifact@v4
 | 
			
		||||
        with:
 | 
			
		||||
          name: linux-x64
 | 
			
		||||
          path: Raylib-cs.Native/bin/Release/native/raylib/libraylib.so
 | 
			
		||||
@@ -76,21 +76,21 @@ jobs:
 | 
			
		||||
            arch: x86_64
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: checkout repository
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
      - name: setup dotnet
 | 
			
		||||
        uses: actions/setup-dotnet@v3
 | 
			
		||||
        uses: actions/setup-dotnet@v4
 | 
			
		||||
        with:
 | 
			
		||||
          dotnet-version: 6.0.x
 | 
			
		||||
 | 
			
		||||
      - name: build projects
 | 
			
		||||
        run: dotnet build -c Release /p:BuildArch=${{ matrix.arch }} 
 | 
			
		||||
        run: dotnet build -c Release /p:BuildArch=${{ matrix.arch }}
 | 
			
		||||
 | 
			
		||||
      - name: run tests
 | 
			
		||||
        run: dotnet test Raylib-cs.Tests -c Release
 | 
			
		||||
 | 
			
		||||
      - name: upload build
 | 
			
		||||
        uses: actions/upload-artifact@v3
 | 
			
		||||
        uses: actions/upload-artifact@v4
 | 
			
		||||
        with:
 | 
			
		||||
          name: osx-${{ matrix.name }}
 | 
			
		||||
          path: Raylib-cs.Native/bin/Release/native/raylib/libraylib.dylib
 | 
			
		||||
@@ -109,21 +109,21 @@ jobs:
 | 
			
		||||
            arch: x64
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: checkout repository
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
      - name: setup dotnet
 | 
			
		||||
        uses: actions/setup-dotnet@v3
 | 
			
		||||
        uses: actions/setup-dotnet@v4
 | 
			
		||||
        with:
 | 
			
		||||
          dotnet-version: 6.0.x
 | 
			
		||||
 | 
			
		||||
      - name: build projects
 | 
			
		||||
        run: dotnet build -c Release /p:BuildArch=${{ matrix.arch }} 
 | 
			
		||||
        run: dotnet build -c Release /p:BuildArch=${{ matrix.arch }}
 | 
			
		||||
 | 
			
		||||
      - name: run tests
 | 
			
		||||
        run: dotnet test Raylib-cs.Tests -c Release
 | 
			
		||||
 | 
			
		||||
      - name: upload build
 | 
			
		||||
        uses: actions/upload-artifact@v3
 | 
			
		||||
        uses: actions/upload-artifact@v4
 | 
			
		||||
        with:
 | 
			
		||||
          name: win-${{ matrix.name }}
 | 
			
		||||
          path: Raylib-cs.Native/bin/Release/native/raylib/Release/raylib.dll
 | 
			
		||||
@@ -137,7 +137,7 @@ jobs:
 | 
			
		||||
      - build-windows
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: checkout repository
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
 | 
			
		||||
      - uses: actions/download-artifact@v4.1.7
 | 
			
		||||
        with:
 | 
			
		||||
@@ -165,7 +165,7 @@ jobs:
 | 
			
		||||
          path: Raylib-cs/runtimes/win-x64/native
 | 
			
		||||
 | 
			
		||||
      - name: setup dotnet
 | 
			
		||||
        uses: actions/setup-dotnet@v3
 | 
			
		||||
        uses: actions/setup-dotnet@v4
 | 
			
		||||
        with:
 | 
			
		||||
          dotnet-version: 6.0.x
 | 
			
		||||
 | 
			
		||||
@@ -173,7 +173,7 @@ jobs:
 | 
			
		||||
        run: dotnet pack Raylib-cs -c Release --output nuget
 | 
			
		||||
 | 
			
		||||
      - name: upload NuGet Package As Artifact
 | 
			
		||||
        uses: actions/upload-artifact@v3
 | 
			
		||||
        uses: actions/upload-artifact@v4
 | 
			
		||||
        with:
 | 
			
		||||
          path: nuget/*
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user