Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions .github/workflows/BuildSolutions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Build Solutions

permissions:
contents: write

on:
push:
branches: [main]

jobs:
build-timeserved:
name: Build TimeServed
runs-on: windows-latest
if: github.actor != 'github-actions[bot]'

steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'

- name: Restore
run: dotnet restore TimeServed.sln

- name: Build
run: |
dotnet build TimeServed.sln `
--configuration Release `
--no-restore `
--output build-output/TimeServed

build-level-editor:
name: Build LevelEditor
needs: build-timeserved
runs-on: windows-latest
if: github.actor != 'github-actions[bot]'

steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Restore
run: dotnet restore LevelEditor/LevelEditor.sln

- name: Build
run: |
dotnet build LevelEditor/LevelEditor.sln `
--configuration Release `
--no-restore `
--output build-output/LevelEditor

- name: Commit build outputs to builds branch
shell: pwsh
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

# Create or reset builds branch
git checkout -B builds

git add build-output/TimeServed
git add build-output/LevelEditor

if (git diff --cached --quiet) {
Write-Host "No changes to commit"
} else {
git commit -m "Build outputs (CI)"
git push origin builds
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -401,3 +401,6 @@ FodyWeavers.xsd

# JetBrains Rider
*.sln.iml


build-output/
8 changes: 5 additions & 3 deletions LevelEditor/LevelEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
<TargetFramework>net8.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<EnableWindowsTargeting>true</EnableWindowsTargeting>

<ImplicitUsings>enable</ImplicitUsings>
<ForceDesignerDPIUnaware>true</ForceDesignerDPIUnaware>
<ForceDesignerDPIUnaware>true</ForceDesignerDPIUnaware>
</PropertyGroup>

<ItemGroup>
Expand All @@ -32,8 +34,8 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Sprites\Tiles\testWalkable.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<Compile Update="Controls\TriggerBox.cs">
<SubType>Component</SubType>
</Compile>
Expand Down
38 changes: 0 additions & 38 deletions MakeEveryDayRecount.csproj

This file was deleted.

22 changes: 0 additions & 22 deletions MakeEveryDayRecount.sln

This file was deleted.

2 changes: 2 additions & 0 deletions TimeServed.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<RollForward>Major</RollForward>
<PublishReadyToRun>false</PublishReadyToRun>
<TieredCompilation>false</TieredCompilation>
<EnableWindowsTargeting>true</EnableWindowsTargeting>

</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>app.manifest</ApplicationManifest>
Expand Down