From 66efe2b0232747f29075ef956b3beb387e16010f Mon Sep 17 00:00:00 2001 From: "Michael Hawker MSFT (XAML Llama)" <24302614+michael-hawker@users.noreply.github.com> Date: Fri, 5 Aug 2022 18:35:23 -0700 Subject: [PATCH] Add check for VM to test for Longpath --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 71c04e75d..54faf27b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,10 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: + - name: Check LongPathsEnabled + run: | + (Get-ItemProperty "HKLM:System\CurrentControlSet\Control\FileSystem").LongPathsEnabled + # Needed until XAML Styler updates to .NET 6 - name: Install .NET Core 3.1 SDK uses: actions/setup-dotnet@v1 @@ -48,6 +52,10 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: + - name: Check LongPathsEnabled + run: | + (Get-ItemProperty "HKLM:System\CurrentControlSet\Control\FileSystem").LongPathsEnabled + - name: Install .NET 6 SDK uses: actions/setup-dotnet@v1 with: @@ -122,6 +130,10 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: + - name: Check LongPathsEnabled + run: | + (Get-ItemProperty "HKLM:System\CurrentControlSet\Control\FileSystem").LongPathsEnabled + - name: Install .NET 6 SDK uses: actions/setup-dotnet@v1 with: