From 1e1d608501ff5a030ed786a63c27a97fa73d331e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20D=C3=BCrrenberger?= Date: Mon, 20 May 2024 01:40:45 +0200 Subject: [PATCH] Build SFML examples in the CI --- .github/workflows/ci.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ba1aa56..d6e06ee3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,24 +35,33 @@ jobs: dotnet: { name: .NET 8, version: "8.0.x" } steps: - - uses: actions/checkout@v4 + - name: Check out SFML.Net + uses: actions/checkout@v4 + - name: Setup .NET ${{ matrix.dotnet.version }} SDK id: setup-dotnet - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ matrix.dotnet.version }} - name: Enforce SDK Version run: dotnet new globaljson --sdk-version ${{ steps.setup-dotnet.outputs.dotnet-version }} --force - name: Verify SDK Installation run: dotnet --info - - name: Install Dependencies + + - name: Install SFML.Net Dependencies run: dotnet restore - - name: Build + - name: Build SFML.Net run: dotnet build --configuration Release --no-restore - - name: Pack + - name: Pack SFML.Net run: dotnet pack --configuration Release -o Publish + + - name: Install SFML.Net Examples Dependencies + run: dotnet restore examples/Examples.sln + - name: Build SFML.Net Examples + run: dotnet build --configuration Release --no-restore examples/Examples.sln + - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: SFML.Net (${{ matrix.platform.name }} ${{ matrix.dotnet.name }}) path: Publish/SFML.*.*.nupkg