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