From 333cba43c6b98db9154c0486c8878ecd6c2016cc Mon Sep 17 00:00:00 2001 From: Hasan Manzak Date: Thu, 23 Feb 2023 04:38:03 +0300 Subject: [PATCH] Update README.md (#1) nuke fix --- .github/workflows/ci.yml | 10 ++++++---- .github/workflows/ci_publish.yml | 2 +- .nuke/build.schema.json | 10 +++++++++- build/Build.cs | 11 +++++++---- 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c7c592..503b225 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,10 +23,12 @@ on: - 'releases/*' jobs: - ubuntu-latest: - name: ubuntu-latest - runs-on: ubuntu-latest + ubuntu-20_04: + name: ubuntu-20_04 + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Run './build.cmd Ci' run: ./build.cmd Ci diff --git a/.github/workflows/ci_publish.yml b/.github/workflows/ci_publish.yml index 1ff5730..b2fa7a1 100644 --- a/.github/workflows/ci_publish.yml +++ b/.github/workflows/ci_publish.yml @@ -28,7 +28,7 @@ jobs: name: ubuntu-latest runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Run './build.cmd CiPublish' run: ./build.cmd CiPublish env: diff --git a/.nuke/build.schema.json b/.nuke/build.schema.json index 6c8135f..8e950d4 100644 --- a/.nuke/build.schema.json +++ b/.nuke/build.schema.json @@ -29,14 +29,18 @@ "AppVeyor", "AzurePipelines", "Bamboo", + "Bitbucket", "Bitrise", "GitHubActions", "GitLab", "Jenkins", + "Rider", "SpaceAutomation", "TeamCity", "Terminal", - "TravisCI" + "TravisCI", + "VisualStudio", + "VSCode" ] }, "NoLogo": { @@ -46,6 +50,10 @@ "NUGET_API_KEY": { "type": "string" }, + "Partition": { + "type": "string", + "description": "Partition to use on CI" + }, "Plan": { "type": "boolean", "description": "Shows the execution plan (HTML)" diff --git a/build/Build.cs b/build/Build.cs index 4fbd27e..2277cc6 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -14,12 +14,15 @@ using static Nuke.Common.IO.FileSystemTasks; using static Nuke.Common.Tools.DotNet.DotNetTasks; [ShutdownDotNetAfterServerBuild] -[GitHubActions("ci", GitHubActionsImage.UbuntuLatest, +[GitHubActions("ci", GitHubActionsImage.Ubuntu2004, + FetchDepth = 0, OnPullRequestBranches = new[] {"master", "releases/*"}, AutoGenerate = true, InvokedTargets = new[] {nameof(Ci)}, - CacheKeyFiles = new string[0])] -[GitHubActions("ci_publish", GitHubActionsImage.UbuntuLatest, + CacheKeyFiles = new string[0] + )] +[GitHubActions("ci_publish", GitHubActionsImage.Ubuntu2004, + FetchDepth = 0, OnPushBranches = new[] { "releases/*" }, OnPushTags = new[] { "v*" }, AutoGenerate = true, @@ -33,7 +36,7 @@ class Build : NukeBuild [GitRepository] readonly GitRepository GitRepository; - [GitVersion] readonly GitVersion GitVersion; + [GitVersion(Framework = "netcoreapp3.1")] readonly GitVersion GitVersion; [Solution] readonly Solution Solution;