Skip to content

Commit

Permalink
Build SFML examples in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eXpl0it3r committed May 19, 2024
1 parent c260510 commit 1e1d608
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1e1d608

Please sign in to comment.