Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
2550e93
Create build.yml
ThreeDeeJay Mar 26, 2026
69ad415
Update build.yml
ThreeDeeJay Mar 26, 2026
d7e87b5
Retarget .NET Framework from 4.5 to 4.7.2
ThreeDeeJay Mar 26, 2026
6763637
Update build.yml
ThreeDeeJay Mar 26, 2026
2bb4b24
Update build.yml
ThreeDeeJay Mar 26, 2026
b4c2408
Update build.yml
ThreeDeeJay Mar 26, 2026
aed1945
Update build.yml
ThreeDeeJay Mar 26, 2026
f4bcb5e
Update build.yml
ThreeDeeJay Mar 26, 2026
a621629
Update build.yml
ThreeDeeJay Mar 26, 2026
8536875
Update build.yml
ThreeDeeJay Mar 26, 2026
5991327
Update build.yml
ThreeDeeJay Mar 26, 2026
5f014de
Update build.yml
ThreeDeeJay Mar 26, 2026
a34e03f
Update build.yml
ThreeDeeJay Mar 26, 2026
4b1b0a5
Update build.yml
ThreeDeeJay Mar 26, 2026
c09a487
Update build.yml
ThreeDeeJay Mar 26, 2026
bce5480
Update build.yml
ThreeDeeJay Mar 26, 2026
2aa9b1f
Update build.yml
ThreeDeeJay Mar 26, 2026
d0e5d51
Update build.yml
ThreeDeeJay Mar 26, 2026
9d99a5c
Update build.yml
ThreeDeeJay Mar 26, 2026
697d436
Update build.yml
ThreeDeeJay Mar 26, 2026
4ab0069
Update build.yml
ThreeDeeJay Mar 26, 2026
5b77977
Update build.yml
ThreeDeeJay Mar 26, 2026
0cbd4d5
Update build.yml
ThreeDeeJay Mar 26, 2026
d630950
Update build.yml
ThreeDeeJay Mar 26, 2026
8bdb966
Update build.yml
ThreeDeeJay Mar 26, 2026
5b9c847
Update build.yml
ThreeDeeJay Mar 26, 2026
28adff0
Update build.yml
ThreeDeeJay Mar 26, 2026
36f1715
Update build.yml
ThreeDeeJay Mar 26, 2026
acd900d
Update build.yml
ThreeDeeJay Mar 26, 2026
c08b66f
Update build.yml
ThreeDeeJay Mar 26, 2026
a7fde67
Update build.yml
ThreeDeeJay Mar 26, 2026
0218c20
Update packages.config
ThreeDeeJay Mar 26, 2026
db2a846
Update build.yml
ThreeDeeJay Mar 26, 2026
51ece6f
Update packages.config
ThreeDeeJay Mar 26, 2026
a58f718
Update packages.config
ThreeDeeJay Mar 26, 2026
2628dc0
Update build.yml
ThreeDeeJay Mar 26, 2026
22873c4
Update build.yml
ThreeDeeJay Mar 26, 2026
9e9b445
Update build.yml
ThreeDeeJay Mar 26, 2026
cabc228
Downgrade NuGet packages to 4.0.1
ThreeDeeJay Mar 26, 2026
d5dba16
Update build.yml
ThreeDeeJay Mar 26, 2026
6843cf0
Update build.yml
ThreeDeeJay Mar 30, 2026
7830adf
Update package locations
ThreeDeeJay Mar 30, 2026
ae77bc5
Update build.yml
ThreeDeeJay Mar 30, 2026
d52138c
Update Monogame
ThreeDeeJay Mar 30, 2026
2c1c3a4
Merge branch 'francot514:master' into master
ThreeDeeJay Mar 30, 2026
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
166 changes: 166 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
#Based on template from: https://github.com/ThreeDeeJay/GitHub-Actions-build-templates/blob/main/Windows-MSBuild.yml
name: Build

env:
GH_TOKEN: ${{github.token}}
Branch: ${{github.ref_name}}
Artifacts: SimsVille\bin\Release
Title: ${{github.event.repository.name}}
Solution: SimsVille/SimsVille.sln

on:
push:
Branches: $Branch
pull_request:
Branches: $Branch
workflow_dispatch:

jobs:
Build:
name: ${{matrix.Settings.Name}}-${{matrix.Configuration}}
runs-on: windows-2022
strategy:
matrix:
Configuration: [Release]
Settings:
- {
Name: "Win32",
Platform: "Win32",
Architecture: "x86",
Triplet: "x86-windows"
}

steps:

- name: Clone repo and submodules
run: >
git
clone https://${{github.repository_owner}}:${{github.token}}@github.com/${{github.repository}}.git
"${{github.workspace}}"
--branch ${{env.Branch}}
--recurse-submodules
--depth 1

- name: Install vcpkg
uses: lukka/run-vcpkg@v11.5
with:
vcpkgGitCommitId: c2aeddd80357b17592e59ad965d2adf65a19b22f

- name: Install VCPKG dependencies
run: |
vcpkg install sdl2 openal-soft --triplet ${{matrix.Settings.Triplet}}

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.0.2

- name: Restore
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore "${{env.Solution}}"

- name: Build
run: >
msbuild
/m "${{env.Solution}}"
/p:Platform="${{matrix.Settings.Architecture}}"
/p:Configuration="${{matrix.Configuration}}"
/p:PlatformToolset="v143"

- name: List files
run: ls -R

- name: Deploy
shell: cmd
run: |
mkdir "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\MonoGame.Framework.WindowsGL.3.6.0.1625\lib\net40\*.dll" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\MonoGame.Framework.WindowsGL.3.6.0.1625\lib\net40\*.xml" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\Ninject.3.3.6\lib\net45\*.dll" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\Ninject.3.3.6\lib\net45\*.xml" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.4.0.1\lib\net45\*.dll" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.4.0.1\lib\net45\*.xml" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.D3DCompiler.4.0.1\lib\net45\*.dll" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.D3DCompiler.4.0.1\lib\net45\*.xml" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.Direct2D1.4.0.1\lib\net45\*.dll" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.Direct2D1.4.0.1\lib\net45\*.xml" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.Direct3D11.4.0.1\lib\net45\*.dll" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.Direct3D11.4.0.1\lib\net45\*.xml" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.Direct3D11.Effects.4.0.1\lib\net45\*.dll" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.Direct3D11.Effects.4.0.1\lib\net45\*.xml" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.Direct3D9.4.0.1\lib\net45\*.dll" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.Direct3D9.4.0.1\lib\net45\*.xml" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.DXGI.4.0.1\lib\net45\*.dll" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.DXGI.4.0.1\lib\net45\*.xml" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.MediaFoundation.4.0.1\lib\net45\*.dll" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.MediaFoundation.4.0.1\lib\net45\*.xml" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.RawInput.4.0.1\lib\net45\*.dll" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.RawInput.4.0.1\lib\net45\*.xml" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.XAudio2.4.0.1\lib\net45\*.dll" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.XAudio2.4.0.1\lib\net45\*.xml" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.XInput.4.0.1\lib\net45\*.dll" "${{env.Artifacts}}\Monogame\WindowsGL"
move "SimsVille\packages\SharpDX.XInput.4.0.1\lib\net45\*.xml" "${{env.Artifacts}}\Monogame\WindowsGL"
move "vcpkg\installed\${{matrix.Settings.Triplet}}\bin\OpenAL32.dll" "${{env.Artifacts}}\Monogame\WindowsGL\soft_oal.dll"
move "vcpkg\installed\${{matrix.Settings.Triplet}}\bin\SDL2.dll" "${{env.Artifacts}}\sdl2.dll"
move "SimsNet\bin\Release\*.exe" "${{env.Artifacts}}"
move "SimsNet\bin\Release\*.config" "${{env.Artifacts}}"
move "SimsVille\Content" "${{env.Artifacts}}"

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{env.Title}}-${{matrix.Settings.Name}}-${{matrix.Configuration}}
path: "${{github.workspace}}/${{env.Artifacts}}/"

Release:
name: Release
runs-on: windows-latest
needs: Build
steps:

- name: Clone repo and submodules
run: git clone https://${{github.repository_owner}}:${{github.token}}@github.com/${{github.repository}}.git "${{github.workspace}}" --branch ${{env.Branch}} --recurse-submodules

- name: Get current date, commit hash and count
run: |
echo "FirstCommitHash=$(git rev-list --max-parents=0 HEAD --first-parent)" >> $env:GITHUB_ENV
echo "CommitHash=$(git rev-parse HEAD)" >> $env:GITHUB_ENV
echo "CommitHashShort=$(git rev-parse --short=7 HEAD)" >> $env:GITHUB_ENV
echo "CommitCount=$(git rev-list --count HEAD)" >> $env:GITHUB_ENV
echo "CommitDate=$(git show -s --date=format:'%Y-%m-%d' --format=%cd)" >> $env:GITHUB_ENV

- name: Download Artifacts - Win32
uses: actions/download-artifact@v4
with:
name: ${{env.Title}}-Win32-Release
path: Release/

- name: Deploy
run: |
cp "README.md" "Release/ReadMe.txt"
cp "LICENSE.md" "Release/License.txt"

- name: Compress artifacts
if: github.event_name == 'push'
run: |
7z a "Release/${{env.Title}}.zip" "${{github.workspace}}/Release/*" -mx=9
cp "Release/${{env.Title}}.zip" "Release/${{env.Title}}_r${{env.CommitCount}}@${{env.CommitHashShort}}.zip"

- name: Purge tag - latest-${{env.Branch}}
if: github.event_name == 'push'
run: |
gh release delete latest-${{env.Branch}} --repo ${{github.repository}} --cleanup-tag --yes || true

- name: Release - archive-${{env.Branch}}
if: github.event_name == 'push'
run: |
gh release create archive-${{env.Branch}} --repo ${{github.repository}} --target ${{env.FirstCommitHash}} --latest=false --prerelease --title "${{env.Title}} ${{env.Branch}} build archive" --notes "Latest build: https://github.com/${{github.repository}}/releases/latest-${{env.Branch}}
Build logs: https://github.com/${{github.repository}}/actions" || true
gh release edit archive-${{env.Branch}} --repo ${{github.repository}} --target ${{env.FirstCommitHash}} --latest=false --prerelease --title "${{env.Title}} ${{env.Branch}} build archive" --notes "Latest build: https://github.com/${{github.repository}}/releases/latest-${{env.Branch}}
Build logs: https://github.com/${{github.repository}}/actions" || true
gh release upload archive-${{env.Branch}} --repo ${{github.repository}} --clobber "Release/${{env.Title}}_r${{env.CommitCount}}@${{env.CommitHashShort}}.zip"

- name: Release - latest-${{env.Branch}}
if: github.event_name == 'push'
run: |
gh release create latest-${{env.Branch}} --repo ${{github.repository}} --target ${{env.CommitHash}} --generate-notes --latest=true --title "${{env.Title}} r${{env.CommitCount}}@${{env.CommitHashShort}}" --notes "Build archive: https://github.com/${{github.repository}}/releases/tag/archive-${{env.Branch}}
Build log: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
gh release upload latest-${{env.Branch}} --repo ${{github.repository}} --clobber "Release/${{env.Title}}.zip"
2 changes: 1 addition & 1 deletion SimsNet/SimsNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SimsNet</RootNamespace>
<AssemblyName>SimsNet</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
Expand Down
2 changes: 1 addition & 1 deletion SimsVille/SimsVille.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<AssemblyName>SimsVille</AssemblyName>
<FileAlignment>512</FileAlignment>
<MonoGamePlatform>Linux</MonoGamePlatform>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading