diff --git a/.github/workflows/macos-latest.yml b/.github/workflows/macos-latest.yml index 38937d293..a9698fa3a 100644 --- a/.github/workflows/macos-latest.yml +++ b/.github/workflows/macos-latest.yml @@ -18,15 +18,8 @@ name: macos-latest on: push: - branches-ignore: - - main - pull_request: branches: - main - paths-ignore: - - 'docs/**' - - 'images/**' - - '**/*.md' jobs: macos-latest: diff --git a/.github/workflows/windows-latest.yml b/.github/workflows/windows-latest.yml index 6ef2e14dc..c225d4f77 100644 --- a/.github/workflows/windows-latest.yml +++ b/.github/workflows/windows-latest.yml @@ -18,15 +18,8 @@ name: windows-latest on: push: - branches-ignore: - - main - pull_request: branches: - main - paths-ignore: - - 'docs/**' - - 'images/**' - - '**/*.md' jobs: windows-latest: diff --git a/build/Build.CI.GitHubActions.cs b/build/Build.CI.GitHubActions.cs index ed3661db3..d719f3234 100644 --- a/build/Build.CI.GitHubActions.cs +++ b/build/Build.CI.GitHubActions.cs @@ -9,18 +9,17 @@ "windows-latest", GitHubActionsImage.WindowsLatest, FetchDepth = 0, - OnPushBranchesIgnore = new[] { MainBranch }, - OnPullRequestBranches = new[] { MainBranch }, - OnPullRequestExcludePaths = new[] { "docs/**", "images/**", "**/*.md" }, + OnPushBranches = new[] { MainBranch }, InvokedTargets = new[] { nameof(ITest.Test), nameof(IPack.Pack) }, PublishArtifacts = false)] +// macOS and Windows runs are reserved for main-branch validation (post-merge +// and release pipelines). PRs and feature-branch pushes get Linux-only for +// fast, cheap feedback. [GitHubActions( "macos-latest", GitHubActionsImage.MacOsLatest, FetchDepth = 0, - OnPushBranchesIgnore = new[] { MainBranch }, - OnPullRequestBranches = new[] { MainBranch }, - OnPullRequestExcludePaths = new[] { "docs/**", "images/**", "**/*.md" }, + OnPushBranches = new[] { MainBranch }, InvokedTargets = new[] { nameof(ITest.Test), nameof(IPack.Pack) }, PublishArtifacts = false)] [GitHubActions(