mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-19 13:55:40 -04:00
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.
This commit is contained in:
4
.github/workflows/core_tests.yml
vendored
4
.github/workflows/core_tests.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user