Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
luyanci committed Sep 30, 2024
1 parent 7b73b9f commit 8a91069
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,19 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Download Python
run: wget https://www.python.org/ftp/python/3.8.10/python-3.8.10-embed-amd64.zip
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
- name: Unzip
run: |
unzip python-3.8.10-embed-amd64.zip -d runtime
Expand-Archive python-3.8.10-embed-amd64.zip -DestinationPath runtime
- name: Clean
run: rm -rf .env.example .gitignore README.md .github
run: |
Remove-Item -Path .github -Recurse
cmd /c "del .gitignore /s /q"
cmd /c "del README.md /s /q"
cmd /c "del .env.example /s /q"
- name: Get pip
run: |
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
Invoke-Webrequest https://bootstrap.pypa.io/get-pip.py -OutFile get-pip.py
runtime/python.exe get-pip.py
- name: Install requirements
run: |
Expand Down

0 comments on commit 8a91069

Please sign in to comment.