fix(ci): streamline PowerShell command in GitHub Actions workflow for Windows

- Combined multiple PowerShell commands into a single line for improved readability and efficiency.
- Maintained the execution policy bypass to ensure scripts can run without restrictions.
This commit is contained in:
Jamie Pine
2025-12-30 16:06:06 -08:00
parent d7e296a7b3
commit d49b8bc5ba

View File

@@ -45,11 +45,8 @@ jobs:
- name: Symlink target to C:\
if: ${{ matrix.settings.os == 'windows' }}
shell: powershell
run: |
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force
New-Item -ItemType Directory -Force -Path C:\spacedrive_target
New-Item -Path target -ItemType Junction -Value C:\spacedrive_target
powershell -ExecutionPolicy Bypass -Command "New-Item -ItemType Directory -Force -Path C:\spacedrive_target; New-Item -Path target -ItemType Junction -Value C:\spacedrive_target"
- name: Checkout repository
uses: actions/checkout@v4