Skip to content

Commit d6b0d86

Browse files
committed
Fixed CI on Windows
1 parent 421ecf8 commit d6b0d86

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/continuous_integration.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
name: continuous_integration
1818

19-
on: [push, pull_request]
19+
on: [push]
2020

2121
jobs:
2222
windows-latest:
@@ -32,8 +32,8 @@ jobs:
3232
.nuke/temp
3333
~/.nuget/packages
3434
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
35-
- name: 'Run: RunTests'
36-
run: ./build.cmd RunTests
35+
- name: 'Run: PreliminaryCheck, Clean, Restore, BuildGenerators, RunTests'
36+
run: ./build.cmd PreliminaryCheck Clean Restore BuildGenerators RunTests
3737
ubuntu-latest:
3838
name: ubuntu-latest
3939
runs-on: ubuntu-latest
@@ -47,8 +47,8 @@ jobs:
4747
.nuke/temp
4848
~/.nuget/packages
4949
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
50-
- name: 'Run: RunTests'
51-
run: ./build.cmd RunTests
50+
- name: 'Run: PreliminaryCheck, Clean, Restore, BuildGenerators, RunTests'
51+
run: ./build.cmd PreliminaryCheck Clean Restore BuildGenerators RunTests
5252
macos-latest:
5353
name: macos-latest
5454
runs-on: macos-latest
@@ -62,5 +62,5 @@ jobs:
6262
.nuke/temp
6363
~/.nuget/packages
6464
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
65-
- name: 'Run: RunTests'
66-
run: ./build.cmd RunTests
65+
- name: 'Run: PreliminaryCheck, Clean, Restore, BuildGenerators, RunTests'
66+
run: ./build.cmd PreliminaryCheck Clean Restore BuildGenerators RunTests

src/build/Build.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
GitHubActionsImage.WindowsLatest,
2424
GitHubActionsImage.UbuntuLatest,
2525
GitHubActionsImage.MacOsLatest,
26-
On = [GitHubActionsTrigger.Push, GitHubActionsTrigger.PullRequest],
27-
InvokedTargets = [nameof(RunTests)],
26+
On = [GitHubActionsTrigger.Push],
27+
InvokedTargets = [nameof(PreliminaryCheck), nameof(Clean), nameof(Restore), nameof(BuildGenerators), nameof(RunTests)],
2828
TimeoutMinutes = 30,
2929
AutoGenerate = true)]
3030
class Build : NukeBuild

0 commit comments

Comments
 (0)