Skip to content

SFML.Net 3

SFML.Net 3 #160

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
concurrency:
group: environment-${{github.ref}}
cancel-in-progress: true
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
jobs:
build:
name: ${{ matrix.platform.name }} ${{ matrix.dotnet.name }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Linux, os: ubuntu-22.04 }
- { name: Windows, os: windows-2022 }
- { name: macOS x64, os: macos-13 }
- { name: macOS ARM64, os: macos-14 }
dotnet:
- { name: .NET 6, version: "6.0.x" }
- { name: .NET 7, version: "7.0.x" }
- { name: .NET 8, version: "8.0.x" }
- { name: .NET 9, version: "9.0.x" }
steps:
- name: Check out SFML.Net
uses: actions/checkout@v4
- name: Setup .NET ${{ matrix.dotnet.version }} SDK
id: setup-dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet.version }}
- name: Setup .NET 6.0 SDK for MacOS
if: startsWith(maatrix.platform.name, 'macOS') && matrix.dotnet.name == '.NET 6'
id: setup-dotnet

Check failure on line 42 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 42, Col: 13): The identifier 'setup-dotnet' may not be used more than once within the same scope. .github/workflows/ci.yml (Line: 41, Col: 13): Unrecognized named-value: 'maatrix'. Located at position 12 within expression: startsWith(maatrix.platform.name, 'macOS') && matrix.dotnet.name == '.NET 6'
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- 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 SFML.Net Dependencies
run: dotnet restore
- name: Build SFML.Net
run: dotnet build --configuration Release --no-restore
- 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@v4
with:
name: SFML.Net (${{ matrix.platform.name }} ${{ matrix.dotnet.name }})
path: Publish/SFML.*.*.nupkg