From c99ce8edeac39d65dddde11afd3a7f13eea82661 Mon Sep 17 00:00:00 2001 From: tiger tiger tiger Date: Wed, 24 Jun 2026 11:00:17 +0200 Subject: [PATCH] chg: Modernize CI workflow, enable SourceLink - Bump workflow actions to latest majors (Node 24); drop deprecated softprops/action-gh-release@v1 - Trigger push builds on main instead of master - Create local nuget feed dir before pack (fixes NU1301) - Enable Microsoft.SourceLink.GitHub for debugging symbols (ref PR #340) --- .github/workflows/build.yml | 13 ++++++++----- Raylib-cs/Raylib-cs.csproj | 4 ++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca787a9..797afd3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ name: .NET on: push: - branches: ["master"] + branches: ["main"] pull_request: branches: ["*"] paths-ignore: @@ -19,16 +19,19 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Setup .NET - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: | 8.0.x 9.0.x 10.0.x + - name: Prepare local NuGet source + run: mkdir -p nuget + - name: Create NuGet Package run: dotnet pack Raylib-cs -c Release --output nuget @@ -42,12 +45,12 @@ jobs: dotnet test --verbosity normal - name: upload NuGet Package As Artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: path: nuget/* - name: upload NuGet Package As Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v3 if: startsWith(github.ref, 'refs/tags/') with: files: nuget/* diff --git a/Raylib-cs/Raylib-cs.csproj b/Raylib-cs/Raylib-cs.csproj index 5907915..7da6253 100644 --- a/Raylib-cs/Raylib-cs.csproj +++ b/Raylib-cs/Raylib-cs.csproj @@ -35,6 +35,10 @@ + + + +