Skip to content

Commit c2af84b

Browse files
committed
wsl not working in ci
1 parent f459500 commit c2af84b

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
os: [ubuntu-latest, windows-latest, macos-latest]
19+
os: [ubuntu-latest, macos-latest]
2020
php: [8.0 ,8.1 ,8.2, 8.3, 8.4]
2121

2222
steps:
@@ -41,27 +41,6 @@ jobs:
4141
php -v
4242
shell: bash
4343

44-
# Setup PHP for Windows using WSL
45-
- name: Enable WSL and Install PHP
46-
if: matrix.os == 'windows-latest'
47-
run: |
48-
wsl --install -d Ubuntu
49-
wsl sudo apt update
50-
wsl sudo apt install -y php${{ matrix.php }} php${{ matrix.php }}-cli php${{ matrix.php }}-xml php${{ matrix.php }}-curl php${{ matrix.php }}-mbstring
51-
wsl php -v
52-
shell: pwsh
53-
54-
# Install Composer inside WSL
55-
- name: Install Composer (Windows via WSL)
56-
if: matrix.os == 'windows-latest'
57-
run: |
58-
wsl php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
59-
wsl php composer-setup.php
60-
wsl php -r "unlink('composer-setup.php');"
61-
wsl sudo mv composer.phar /usr/local/bin/composer
62-
wsl sudo chmod +x /usr/local/bin/composer
63-
wsl composer -V
64-
shell: pwsh
6544

6645
- name: Get Composer Cache Directory
6746
id: composer-cache

0 commit comments

Comments
 (0)