mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Add workflow to build all configurations. Builds Debug, Tools, Release against Linux, Windows and MacOS TargetOS. See https://github.com/space-wizards/RobustToolbox/pull/6069#issuecomment-3050607114 * Very epic, GitHub * Whoops * Actually add Tools configuration to sln
35 lines
949 B
YAML
35 lines
949 B
YAML
name: Build All Configurations
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
targetOS: [Windows, Linux, MacOS]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4.2.2
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4.1.0
|
|
with:
|
|
dotnet-version: 9.0.x
|
|
|
|
- name: Install dependencies
|
|
run: dotnet restore
|
|
- name: Build Debug
|
|
run: dotnet build --no-restore --configuration Debug /p:WarningsAsErrors=nullable /p:TargetOS=${{ matrix.targetOS }}
|
|
- name: Build Tools
|
|
run: dotnet build --no-restore --configuration Tools /p:WarningsAsErrors=nullable /p:TargetOS=${{ matrix.targetOS }}
|
|
- name: Build Release
|
|
run: dotnet build --no-restore --configuration Release /p:WarningsAsErrors=nullable /p:TargetOS=${{ matrix.targetOS }}
|