From c2a42508864140dc170ab606a253bef86a86c3f3 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Fri, 20 Nov 2020 01:14:09 -0300 Subject: [PATCH] When redirecting envvars/%path%, use bash The default (powershell) for Windows doesn't seem to be working for adding envvar/path --- .github/workflows/build.yml | 5 ++++- .github/workflows/release.yml | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd431114..9c7ae88b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,8 @@ jobs: - name: ๐Ÿค˜ checkout uses: actions/checkout@v2 - name: ๐Ÿ–‰ version - run: echo "VERSION_SUFFIX=$(git name-rev --name-only --refs=refs/heads/* HEAD).$($env:GITHUB_RUN_NUMBER)" >> $GITHUB_ENV + run: echo "VERSION_SUFFIX=$(git name-rev --name-only --refs=refs/heads/* HEAD).$GITHUB_RUN_NUMBER" >> $GITHUB_ENV + shell: bash - name: โš™ dotnet 5.0.x uses: actions/setup-dotnet@v1 with: @@ -29,11 +30,13 @@ jobs: run: dotnet tool update -g dotnet-vs - name: ๐Ÿ” vs 16.8+ run: echo "MSB=$(vs where --prop=InstallationPath --first -version 16.8)" >> $GITHUB_ENV + shell: bash - name: ๐Ÿ”ฝ vs community run: vs install community --quiet +Microsoft.VisualStudio.Component.ManagedDesktop.Core +Microsoft.NetCore.Component.DevelopmentTools if: env.MSB == '' - name: โ‰ฅ msbuild run: echo "$(vs where --prop=InstallationPath --first -version 16.8)\MSBuild\Current\Bin" >> $GITHUB_PATH + shell: bash - name: ๐Ÿ™ build run: msbuild -r -p:versionsuffix=$($env:VERSION_SUFFIX) - name: ๐Ÿงช test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d818681..b9016c9f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,11 +33,13 @@ jobs: run: dotnet tool update -g dotnet-vs - name: ๐Ÿ” vs 16.8+ run: echo "MSB=$(vs where --prop=InstallationPath --first -version 16.8)" >> $GITHUB_ENV + shell: bash - name: ๐Ÿ”ฝ vs community run: vs install community --quiet +Microsoft.VisualStudio.Component.ManagedDesktop.Core +Microsoft.NetCore.Component.DevelopmentTools if: env.MSB == '' - name: โ‰ฅ msbuild run: echo "$(vs where --prop=InstallationPath --first -version 16.8)\MSBuild\Current\Bin" >> $GITHUB_PATH + shell: bash - name: ๐Ÿ™ build run: msbuild -r -p:version=$($env:VERSION) - name: ๐Ÿงช test