From 5b6e5fb70f163c15c68da0a11bfc5264ef36eeed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurai=20Andr=C3=A1s?= Date: Sat, 17 Apr 2021 01:02:55 +0200 Subject: [PATCH 1/5] print gh version --- CsprojToAsmdef.Build/Ci.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CsprojToAsmdef.Build/Ci.cs b/CsprojToAsmdef.Build/Ci.cs index 1187677..7da6457 100644 --- a/CsprojToAsmdef.Build/Ci.cs +++ b/CsprojToAsmdef.Build/Ci.cs @@ -7,5 +7,6 @@ partial class Build .DependsOn(InstallCli) .Executes(() => { + Gh("--version"); }); } From 9fb62464083d00e0ba1596e9fc219d59d2f3a6b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurai=20Andr=C3=A1s?= Date: Sat, 17 Apr 2021 01:06:46 +0200 Subject: [PATCH 2/5] use name gh.exe --- CsprojToAsmdef.Build/NuGet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CsprojToAsmdef.Build/NuGet.cs b/CsprojToAsmdef.Build/NuGet.cs index 76c4c41..f138990 100644 --- a/CsprojToAsmdef.Build/NuGet.cs +++ b/CsprojToAsmdef.Build/NuGet.cs @@ -19,7 +19,7 @@ partial class Build [Parameter("NuGet API key to use for authentication with the NuGet server")] readonly string? NugetApiKey; - [PathExecutable] readonly Tool Gh = default!; + [PathExecutable("gh.exe")] readonly Tool Gh = default!; Target Pack => _ => _ .DependsOn(BuildCli) From 7960145cff1492bfd2e7e22e89eb59de15618fd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurai=20Andr=C3=A1s?= Date: Sat, 17 Apr 2021 01:10:09 +0200 Subject: [PATCH 3/5] test for gh with shell --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22c1aa1..adf9d6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,10 @@ jobs: - name: Setup Current .NET SDK uses: actions/setup-dotnet@v1.7.2 + - name: Asd + shell: pwsh + run: gh --version + - name: Run CI shell: pwsh run: ./build.ps1 RunCi --ci-build --configuration Release From 430d33d3245e26c54a673264af62bec4c581b3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurai=20Andr=C3=A1s?= Date: Sat, 17 Apr 2021 01:37:17 +0200 Subject: [PATCH 4/5] run workflows on windows --- .github/workflows/ci.yml | 2 +- .github/workflows/nukeeper.yml | 2 +- .github/workflows/publish.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index adf9d6c..c4a9a76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: jobs: run-ci: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - uses: actions/checkout@v2.1.0 diff --git a/.github/workflows/nukeeper.yml b/.github/workflows/nukeeper.yml index 76c6965..640810a 100644 --- a/.github/workflows/nukeeper.yml +++ b/.github/workflows/nukeeper.yml @@ -7,7 +7,7 @@ on: jobs: update-packages: - runs-on: ubuntu-latest + runs-on: windows-latest name: Update dependencies steps: - name: Checkout diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9e4ac45..fa777da 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,7 +7,7 @@ on: jobs: publish: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - uses: actions/checkout@v2.1.0 From a713a5093cedfcad5fad70680f80cdafb623e388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurai=20Andr=C3=A1s?= Date: Sat, 17 Apr 2021 01:41:18 +0200 Subject: [PATCH 5/5] cleanup --- .github/workflows/ci.yml | 4 ---- CsprojToAsmdef.Build/Ci.cs | 1 - CsprojToAsmdef.Build/NuGet.cs | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4a9a76..8d8bc9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,10 +15,6 @@ jobs: - name: Setup Current .NET SDK uses: actions/setup-dotnet@v1.7.2 - - name: Asd - shell: pwsh - run: gh --version - - name: Run CI shell: pwsh run: ./build.ps1 RunCi --ci-build --configuration Release diff --git a/CsprojToAsmdef.Build/Ci.cs b/CsprojToAsmdef.Build/Ci.cs index 7da6457..1187677 100644 --- a/CsprojToAsmdef.Build/Ci.cs +++ b/CsprojToAsmdef.Build/Ci.cs @@ -7,6 +7,5 @@ partial class Build .DependsOn(InstallCli) .Executes(() => { - Gh("--version"); }); } diff --git a/CsprojToAsmdef.Build/NuGet.cs b/CsprojToAsmdef.Build/NuGet.cs index f138990..76c4c41 100644 --- a/CsprojToAsmdef.Build/NuGet.cs +++ b/CsprojToAsmdef.Build/NuGet.cs @@ -19,7 +19,7 @@ partial class Build [Parameter("NuGet API key to use for authentication with the NuGet server")] readonly string? NugetApiKey; - [PathExecutable("gh.exe")] readonly Tool Gh = default!; + [PathExecutable] readonly Tool Gh = default!; Target Pack => _ => _ .DependsOn(BuildCli)