From f70206d0193970fd36c1bcd8056fb8d5eb18ffcf Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Tue, 30 Dec 2025 16:08:00 -0800 Subject: [PATCH] fix(ci): update symlink creation command in GitHub Actions workflow for Windows - Replaced PowerShell commands with native CMD commands for creating a directory and symlink, improving compatibility and simplicity. - Ensured the directory is created only if it does not already exist, enhancing the robustness of the workflow. --- .github/workflows/core_tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/core_tests.yml b/.github/workflows/core_tests.yml index cdb639e57..5a88c40be 100644 --- a/.github/workflows/core_tests.yml +++ b/.github/workflows/core_tests.yml @@ -45,8 +45,10 @@ jobs: - name: Symlink target to C:\ if: ${{ matrix.settings.os == 'windows' }} + shell: cmd run: | - powershell -ExecutionPolicy Bypass -Command "New-Item -ItemType Directory -Force -Path C:\spacedrive_target; New-Item -Path target -ItemType Junction -Value C:\spacedrive_target" + if not exist C:\spacedrive_target mkdir C:\spacedrive_target + mklink /J target C:\spacedrive_target - name: Checkout repository uses: actions/checkout@v4