Skip to content

Commit cec0520

Browse files
committed
Merge branch 'main' into doc-tutorials
2 parents 3d99503 + b220e16 commit cec0520

File tree

6 files changed

+32
-12
lines changed

6 files changed

+32
-12
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push, pull_request]
44

55
env:
66
GMODNET_VERSION: '0.6.0'
7-
DOTNET_SDK_VERSION: '5.0.300'
7+
DOTNET_SDK_VERSION: '5.0.301'
88

99
jobs:
1010
linux-build:
@@ -49,7 +49,7 @@ jobs:
4949
cp lua/Tests/run_tests.lua gmod/garrysmod/lua/autorun
5050
5151
- name: Run Garry's Mod
52-
run: ./srcds_run_x64 -game garrysmod -systemtest +sv_hibernate_think 1 || true
52+
run: ./srcds_run_x64 -game garrysmod -systemtest -condebug +sv_hibernate_think 1 || true
5353
working-directory: ./gmod/
5454
timeout-minutes: 1
5555
continue-on-error: true
@@ -61,7 +61,9 @@ jobs:
6161
- name: Print Corehost trace
6262
working-directory: ./gmod/
6363
run: cat corehost_trace.txt
64-
continue-on-error: true
64+
65+
- name: Print console log
66+
run: cat gmod/garrysmod/console.log
6567

6668
- name: Print test log
6769
run: cat gmod/tests-log.txt
@@ -161,8 +163,13 @@ jobs:
161163
- name: Run Garry's Mod
162164
shell: bash
163165
run: |
164-
powershell -Command './gmod/srcds_win64.exe -console -systemtest -game "garrysmod" +exec "server.cfg" +gamemode sandbox +map gm_construct +maxplayers 16 +sv_hibernate_think 1'
165-
sleep 15
166+
powershell -Command './gmod/srcds_win64.exe -console -systemtest -condebug -game "garrysmod" +exec "server.cfg" +gamemode sandbox +map gm_construct +maxplayers 16 +sv_hibernate_think 1'
167+
powershell -Command 'Wait-Process -Name srcds_win64'
168+
timeout-minutes: 5
169+
continue-on-error: true
170+
171+
- name: Print console log
172+
run: cat gmod/garrysmod/console.log
166173

167174
- name: Print test log
168175
shell: bash

docfx_project/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
# How to build docs
22

3-
Due to the lack of complete .NET 5 and C# 9.0 support (https://github.com/dotnet/docfx/issues/6790), custom fork of DocFX must be used: https://github.com/GlebChili/docfx/tree/charp-9-workaround-by-tanner-gooding. It contains workaround by [Tanner Gooding](https://github.com/tannergooding).
3+
Docs must be build with [DocFX Version 2.58](https://github.com/dotnet/docfx) or greater. DocFX version 3.x is not (yet) supported.
4+
5+
Build instructions (given that DocFX is in your `PATH`):
6+
7+
To build docs (compiled docs artifacts will be in the `_site` folder)
8+
```
9+
[Path to GmodDotNet repo]\docfx_project> docfx .\docfx.json
10+
```
11+
12+
To host a local http server and preview docs locally:
13+
```
14+
[Path to GmodDotNet repo]\docfx_project> docfx .\docfx.json --serve
15+
```

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "5.0.300",
3+
"version": "5.0.301",
44
"allowPrerelease": false
55
}
66
}

gm_dotnet_managed/GmodNET.API/GmodNET.API.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<RepositoryUrl>https://github.com/GmodNET/GmodDotNet</RepositoryUrl>
99
<RepositoryType>Git</RepositoryType>
1010
<PackageTags>garrysmod; GmodNET</PackageTags>
11-
<PackageProjectUrl>https://github.com/GlebChili/GmodDotNet</PackageProjectUrl>
11+
<PackageProjectUrl>https://github.com/GmodNET/GmodDotNet</PackageProjectUrl>
1212
<PackageIconUrl>https://raw.githubusercontent.com/GlebChili/GmodDotNet/devel_netcore_2/MetaInfo/Logo/gmodnetlogo.png</PackageIconUrl>
1313
<Company>GmodNET</Company>
1414
<Copyright>Copyright (c) 2018 - 2020 Gleb Krasilich, GmodNET</Copyright>

gm_dotnet_managed/GmodNET.API/ILua.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public interface ILua
7373
/// <param name="iStackPos">Position of the table on the stack.</param>
7474
/// <param name="key">Key in the table to set value for.</param>
7575
/// <remarks>
76+
/// Pops the value from the top of the stack.
7677
/// This method can be used to fill Lua tables with values or update them.
7778
/// In the example below we will add a Lua funtion <c>SayHello</c> to the Lua global table <see cref="SPECIAL_TABLES.SPECIAL_GLOB"/>.
7879
/// This function then can be called from any Lua script as <c>SayHello()</c>.

runtime.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
<PropertyGroup>
55
<TargetFramework>net5.0</TargetFramework>
66

7-
<BundledNETCoreVersion>5.0.6</BundledNETCoreVersion>
7+
<BundledNETCoreVersion>5.0.7</BundledNETCoreVersion>
88

99
<NETCoreDownloadUrl Condition="$(NETCoreSdkRuntimeIdentifier) == 'win-x64'">
10-
https://download.visualstudio.microsoft.com/download/pr/ee27c1fe-bdca-4fb8-a303-125081a3e43d/14bb0ed982304f24a6429a5d63e9bff7/aspnetcore-runtime-5.0.6-win-x64.zip
10+
https://download.visualstudio.microsoft.com/download/pr/ec3e6a91-56df-4f3e-bf8a-676c35363c12/f6d290090fa8c6c3174d708034ef3401/aspnetcore-runtime-5.0.7-win-x64.zip
1111
</NETCoreDownloadUrl>
1212

1313
<NETCoreDownloadUrl Condition="$(NETCoreSdkRuntimeIdentifier) == 'linux-x64'">
14-
https://download.visualstudio.microsoft.com/download/pr/4a7f1f6c-6777-42c4-9793-581bba4b632e/e03e6237a8f49f60014d459f0f758923/aspnetcore-runtime-5.0.6-linux-x64.tar.gz
14+
https://download.visualstudio.microsoft.com/download/pr/d6be94b3-458f-43c4-8bb5-9ba261de8c9c/bbe13b54208d088b5fdf428759b5bc0a/aspnetcore-runtime-5.0.7-linux-x64.tar.gz
1515
</NETCoreDownloadUrl>
1616

1717
<NETCoreDownloadUrl Condition="$(NETCoreSdkRuntimeIdentifier) == 'osx-x64'">
18-
https://download.visualstudio.microsoft.com/download/pr/fdff418d-5cac-416e-b6d3-7ec2f1c68a34/8f1a06d97eab8244451e9f4a78aa4b4c/aspnetcore-runtime-5.0.6-osx-x64.tar.gz
18+
https://download.visualstudio.microsoft.com/download/pr/8c4b18f1-cc83-4a85-b711-f7820e92bc35/5648074f913c376b06a64f8655ef202d/aspnetcore-runtime-5.0.7-osx-x64.tar.gz
1919
</NETCoreDownloadUrl>
2020
</PropertyGroup>
2121

0 commit comments

Comments
 (0)