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
4 changes: 3 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "src/Main/config"]
path = src/Main/config
url = https://github.com/tboby/cwtools-stellaris-config
[submodule "submodules/cwtools"]
path = submodules/cwtools
url = https://github.com/cwtools/cwtools
5 changes: 5 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<UseArtifactsOutput>true</UseArtifactsOutput>
</PropertyGroup>
</Project>
6 changes: 2 additions & 4 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
cls

dotnet tool restore
dotnet paket restore
if errorlevel 1 (
exit /b %errorlevel%
)
REM Ensure git submodules (cwtools) are available when not using a local override
git submodule update --init --recursive

dotnet run --project build -- -t %*
6 changes: 1 addition & 5 deletions build.nu
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
def main [profile? : string] {

dotnet tool restore
dotnet paket restore
let exit_code = $env.LAST_EXIT_CODE
if $exit_code != 0 {
exit $exit_code
}
git submodule update --init --recursive
dotnet run --project build -- -t ($profile | default "QuickBuild")
}
7 changes: 2 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash

dotnet tool restore
dotnet paket restore
exit_code=$?
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi
# Ensure git submodules (cwtools) are available when not using a local override
git submodule update --init --recursive
dotnet run --project build -- -t $@
20 changes: 20 additions & 0 deletions cwtools-vscode.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<Solution>
<Folder Name="/.paket/">
<File Path="paket.dependencies" />
</Folder>
<Folder Name="/Solution Items/">
<File Path="build.cmd" />
<File Path="build.sh" />
<File Path="Directory.Packages.props" />
</Folder>
<Folder Name="/src/">
<Project Path="src/CSharpExtensions/CSharpExtensions.csproj" />
<Project Path="src/Languages/Languages.csproj" />
<Project Path="src/LSP/LSP.fsproj">
</Project>
<Project Path="src/Main/Main.fsproj">
</Project>
</Folder>
<Folder Name="/tests/" />
<Project Path="build/build.fsproj" />
</Solution>
148 changes: 0 additions & 148 deletions fsharp-language-server.sln

This file was deleted.

12 changes: 0 additions & 12 deletions fsharp-language-server.sln.DotSettings.user

This file was deleted.

4 changes: 0 additions & 4 deletions paket.dependencies

This file was deleted.

7 changes: 0 additions & 7 deletions paket.lock

This file was deleted.

4 changes: 2 additions & 2 deletions src/Main/Main.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PropertyGroup>
<AssemblyName>CWTools Server</AssemblyName>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
<ServerGarbageCollection>true</ServerGarbageCollection>
<PublishReadyToRunComposite>true</PublishReadyToRunComposite>
Expand All @@ -17,7 +17,7 @@
<RuntimeHostConfigurationOption Include="System.GC.NoAffinitize" Value="true" />

<ProjectReference Include="..\LSP\LSP.fsproj" />
<ProjectReference Condition="'$(UseLocalCwtools)' != 'True'" Include="..\..\paket-files\git\www.github.com\cwtools\cwtools\CWTools\CWTools.fsproj" />
<ProjectReference Condition="'$(UseLocalCwtools)' != 'True'" Include="..\..\submodules\cwtools\CWTools\CWTools.fsproj" />
<ProjectReference Condition="'$(UseLocalCwtools)' == 'True'" Include="$(CwtoolsPath)" />
</ItemGroup>
<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions submodules/cwtools
Submodule cwtools added at b37745
Loading