Skip to content

Commit

Permalink
action: refactor steps and use python 3.7
Browse files Browse the repository at this point in the history
Since oldwin uses python 3.7, modify the setup-python to also use 3.7
  • Loading branch information
alive4ever committed Feb 15, 2025
1 parent 2f3a9d5 commit 1c73db5
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/generate_release_oldwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,26 @@ jobs:
id: setup-python
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.7'
architecture: 'x86'
- name: Generating release
id: generating-release
shell: bash
run: |
cd ${{ github.workspace }}
python ./generate_release.py 3.8.9 32
python ./generate_release.py oldwin
- name: Testing runtime
id: testing-runtime
shell: bash
run: |
cd ${{ github.workspace }}/youtube-local
./python/python.exe -c "import server; from youtube import util; url = 'https://cloudflare.com/cdn-cgi/trace'; resp = util.fetch_url(url, report_text='Getting CF trace report'); print(resp.decode())"
- name: Preparing output directory
id: prepare-out-dir
shell: bash
run: |
mkdir -p output
xcopy youtube-local*zip .\output\
xcopy youtube-local*zip ./output/
- name: Uploading build artifacts
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 1c73db5

Please sign in to comment.