Merge pull request #46 from bijington/feature/platformer #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build the Engine (macOS) | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 8.0.x | |
- name: workload install | |
run: dotnet workload install maui | |
- name: Restore dependencies | |
run: dotnet restore engine/Orbit.Engine/Orbit.Engine.csproj | |
- name: Restore dependencies | |
run: dotnet restore engine/Orbit.Engine.Tests/Orbit.Engine.Tests.csproj | |
- name: Build engine | |
run: dotnet build engine/Orbit.Engine/Orbit.Engine.csproj --no-restore | |
- name: Build tests | |
run: dotnet build engine/Orbit.Engine.Tests/Orbit.Engine.Tests.csproj --no-restore | |
- name: Run tests | |
run: dotnet test engine/Orbit.Engine.Tests/Orbit.Engine.Tests.csproj --no-restore |