Skip to content

Commit 87b319c

Browse files
committed
fix windows build
1 parent 7b73b9f commit 87b319c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,20 @@ jobs:
8383
steps:
8484
- uses: actions/checkout@v4
8585
- name: Download Python
86-
run: wget https://www.python.org/ftp/python/3.8.10/python-3.8.10-embed-amd64.zip
86+
run: Invoke-Webrequest https://www.python.org/ftp/python/3.8.10/python-3.8.10-embed-amd64.zip -OutFile python-3.8.10-embed-amd64.zip
8787
- name: Unzip
8888
run: |
89-
unzip python-3.8.10-embed-amd64.zip -d runtime
89+
Expand-Archive python-3.8.10-embed-amd64.zip -DestinationPath runtime
9090
- name: Clean
91-
run: rm -rf .env.example .gitignore README.md .github
91+
run: |
92+
Remove-Item -Path .github -Recurse
93+
cmd /c "del .gitignore /s /q"
94+
cmd /c "del README.md /s /q"
95+
cmd /c "del .env.example /s /q"
9296
- name: Get pip
9397
run: |
94-
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
95-
runtime/python.exe get-pip.py
98+
Invoke-Webrequest https://bootstrap.pypa.io/get-pip.py -OutFile get-pip.py
99+
runtime/python.exe get-pip.py --no-warn-script-location --target runtime
96100
- name: Install requirements
97101
run: |
98102
runtime/python.exe -m pip install --upgrade pip

0 commit comments

Comments
 (0)