Skip to content

Commit 364beae

Browse files
authored
Merge pull request #149 from cwtools/tidy2
Tidy solution some more
2 parents 28d3d2f + 6e68780 commit 364beae

13 files changed

Lines changed: 39 additions & 191 deletions

.github/workflows/pr.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
1719
- name: Setup .NET Core
1820
uses: actions/setup-dotnet@v3
1921
with:

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "src/Main/config"]
2-
path = src/Main/config
3-
url = https://github.com/tboby/cwtools-stellaris-config
1+
[submodule "submodules/cwtools"]
2+
path = submodules/cwtools
3+
url = https://github.com/cwtools/cwtools

Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<PropertyGroup>
3+
<UseArtifactsOutput>true</UseArtifactsOutput>
4+
</PropertyGroup>
5+
</Project>

build.cmd

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
cls
33

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

108
dotnet run --project build -- -t %*

build.nu

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
def main [profile? : string] {
22

33
dotnet tool restore
4-
dotnet paket restore
5-
let exit_code = $env.LAST_EXIT_CODE
6-
if $exit_code != 0 {
7-
exit $exit_code
8-
}
4+
git submodule update --init --recursive
95
dotnet run --project build -- -t ($profile | default "QuickBuild")
106
}

build.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/bin/bash
22

33
dotnet tool restore
4-
dotnet paket restore
5-
exit_code=$?
6-
if [ $exit_code -ne 0 ]; then
7-
exit $exit_code
8-
fi
4+
# Ensure git submodules (cwtools) are available when not using a local override
5+
git submodule update --init --recursive
96
dotnet run --project build -- -t $@

cwtools-vscode.slnx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<Solution>
2+
<Folder Name="/.paket/">
3+
<File Path="paket.dependencies" />
4+
</Folder>
5+
<Folder Name="/Solution Items/">
6+
<File Path="build.cmd" />
7+
<File Path="build.sh" />
8+
<File Path="Directory.Packages.props" />
9+
</Folder>
10+
<Folder Name="/src/">
11+
<Project Path="src/CSharpExtensions/CSharpExtensions.csproj" />
12+
<Project Path="src/Languages/Languages.csproj" />
13+
<Project Path="src/LSP/LSP.fsproj">
14+
</Project>
15+
<Project Path="src/Main/Main.fsproj">
16+
</Project>
17+
</Folder>
18+
<Folder Name="/tests/" />
19+
<Project Path="build/build.fsproj" />
20+
</Solution>

fsharp-language-server.sln

Lines changed: 0 additions & 148 deletions
This file was deleted.

fsharp-language-server.sln.DotSettings.user

Lines changed: 0 additions & 12 deletions
This file was deleted.

paket.dependencies

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)