Skip to content

Commit 07cb473

Browse files
committed
[Build] Remove Nuke. Migrate to ModularPipelines
1 parent fba2c65 commit 07cb473

46 files changed

Lines changed: 748 additions & 712 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/Compile.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Compile
1+
name: Compile solution
22

33
on:
44
push:
@@ -11,14 +11,19 @@ jobs:
1111
name: windows-2022
1212
runs-on: windows-2022
1313
steps:
14+
1415
- name: Checkout
1516
uses: actions/checkout@v4
16-
- name: Cache packages
17+
18+
- name: Cache NuGet
1719
uses: actions/cache@v4
1820
with:
19-
path: |
20-
.nuke/temp
21-
~/.nuget/packages
22-
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
23-
- name: Run Nuke Build
24-
run: ./.nuke/build.cmd
21+
path: ~/.nuget/packages
22+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', 'Directory.Build.props', 'Directory.Packages.props') }}
23+
restore-keys: ${{ runner.os }}-nuget-
24+
25+
- name: Compile solution
26+
run: dotnet run -c Release
27+
working-directory: "build"
28+
env:
29+
DOTNET_ENVIRONMENT: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Development' }}

.github/workflows/Publish Release.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,22 @@ jobs:
1010
name: windows-2022
1111
runs-on: windows-2022
1212
steps:
13+
1314
- name: Checkout
1415
uses: actions/checkout@v4
15-
with:
16-
fetch-depth: 0
17-
- name: Cache packages
16+
17+
- name: Cache NuGet
1818
uses: actions/cache@v4
1919
with:
20-
path: |
21-
.nuke/temp
22-
~/.nuget/packages
23-
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
24-
- name: Run Nuke Build
25-
run: ./.nuke/build.cmd PublishGitHub PublishNuget
20+
path: ~/.nuget/packages
21+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', 'Directory.Build.props', 'Directory.Packages.props') }}
22+
restore-keys: ${{ runner.os }}-nuget-
23+
24+
- name: Publish packages
25+
run: dotnet run -c Release -- pack publish
26+
working-directory: "build"
2627
env:
2728
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
29+
DOTNET_ENVIRONMENT: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Development' }}
30+
Build__Version: ${{ github.ref_name }}
31+
NuGet__ApiKey: ${{ secrets.NUGET_API_KEY }}

.gitignore

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,8 @@
88
*bin/
99
*temp/
1010

11-
#Deprecated Nuget folder
12-
/packages/
13-
14-
#Nuke output folder
11+
#Build output folder
1512
/output/
1613

17-
#Project-specific files
18-
*/build.schema.json
19-
*Secret*
20-
2114
#User-specific files
2215
*.user

.nuke/Build.cmd

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nuke/Build.ps1

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

.nuke/parameters.json

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

.run/Compile.run.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Compile" type="DotNetProject" factoryName=".NET Project">
3+
<option name="EXE_PATH" value="$PROJECT_DIR$/build/bin/Debug/net9.0/Build.exe" />
4+
<option name="PROGRAM_PARAMETERS" value="" />
5+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/build/bin/Debug/net9.0" />
6+
<option name="PASS_PARENT_ENVS" value="1" />
7+
<option name="ENV_FILE_PATHS" value="" />
8+
<option name="REDIRECT_INPUT_PATH" value="" />
9+
<option name="MIXED_MODE_DEBUG" value="0" />
10+
<option name="USE_MONO" value="0" />
11+
<option name="RUNTIME_ARGUMENTS" value="" />
12+
<option name="AUTO_ATTACH_CHILDREN" value="0" />
13+
<option name="PROJECT_PATH" value="$PROJECT_DIR$/build/Build.csproj" />
14+
<option name="PROJECT_EXE_PATH_TRACKING" value="1" />
15+
<option name="PROJECT_ARGUMENTS_TRACKING" value="1" />
16+
<option name="PROJECT_WORKING_DIRECTORY_TRACKING" value="1" />
17+
<option name="PROJECT_KIND" value="Unloaded" />
18+
<option name="PROJECT_TFM" value="net9.0" />
19+
<method v="2">
20+
<option name="Build" />
21+
</method>
22+
</configuration>
23+
</component>

.run/Nuke Clean.run.xml

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

.run/Nuke Plan.run.xml

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

.run/Nuke.run.xml

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

0 commit comments

Comments
 (0)