From f96aaa802b245c8b3aeb5d57b031f8a55bb07de2 Mon Sep 17 00:00:00 2001 From: Kang Huaishuai Date: Fri, 25 Oct 2019 03:13:46 +0800 Subject: [PATCH] Update GitHub Actions, powershell is default on windows (#3195) https://github.blog/changelog/2019-10-17-github-actions-default-shell-on-windows-runners-is-changing-to-powershell/ --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b50ebf2cb2..ee33541ca4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,8 +78,8 @@ jobs: - name: Environment (windows) if: startsWith(matrix.os, 'windows') run: | - echo ::add-path::%cd%\prebuilt\win - echo ::add-path::%cd%\target\release + echo ::add-path::$(pwd)\prebuilt\win + echo ::add-path::$(pwd)\target\release - name: Log versions run: | @@ -122,7 +122,7 @@ jobs: if: matrix.kind == 'test_std' run: | cd std - "../target/release/deno" test -A + ../target/release/deno test -A - name: Test if: matrix.kind == 'test' @@ -169,7 +169,7 @@ jobs: - name: Pre-release (windows) if: startsWith(matrix.os, 'windows') && matrix.kind == 'test' - run: PowerShell -Command "& {Compress-Archive -CompressionLevel Optimal -Force -Path target/release/deno.exe -DestinationPath target/release/deno_win_x64.zip}" + run: Compress-Archive -CompressionLevel Optimal -Force -Path target/release/deno.exe -DestinationPath target/release/deno_win_x64.zip - name: Release uses: softprops/action-gh-release@v1