mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-09-13 11:59:34 +00:00
aff7c24b6a
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 5 to 6. - [Release notes](https://github.com/actions/setup-dotnet/releases) - [Commits](https://github.com/actions/setup-dotnet/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/setup-dotnet dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
# This continuous integration pipeline is triggered on pull requests to master.
|
|
# It validates that both the Windows and Linux builds compile successfully.
|
|
name: Daybreak CI Pipeline
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build-windows:
|
|
runs-on: windows-latest
|
|
|
|
env:
|
|
Configuration: Debug
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: Install .NET
|
|
uses: actions/setup-dotnet@v6
|
|
with:
|
|
dotnet-version: "10.x"
|
|
|
|
- name: Build Windows project
|
|
run: dotnet build Daybreak.Windows/Daybreak.Windows.csproj -c $env:Configuration
|
|
|
|
- name: Build Injector
|
|
run: dotnet build Daybreak.Injector/Daybreak.Injector.csproj -c $env:Configuration
|
|
|
|
- name: Build API
|
|
run: dotnet build Daybreak.API/Daybreak.API.csproj -c $env:Configuration
|
|
|
|
- name: Build Installer
|
|
run: dotnet build Daybreak.Installer/Daybreak.Installer.csproj -c $env:Configuration
|
|
|
|
- name: Run tests
|
|
run: dotnet test Daybreak.Tests/Daybreak.Tests.csproj -c $env:Configuration
|
|
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
Configuration: Debug
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: Install .NET
|
|
uses: actions/setup-dotnet@v6
|
|
with:
|
|
dotnet-version: "10.x"
|
|
|
|
- name: Build Linux project
|
|
run: dotnet build Daybreak.Linux/Daybreak.Linux.csproj -c $Configuration
|
|
|
|
- name: Build Installer (linux-x64)
|
|
run: dotnet build Daybreak.Installer/Daybreak.Installer.csproj -c $Configuration |