Skip to content

Commit

Permalink
[workflows/build.yml] Make PyCrypto the default for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkf committed Jul 18, 2023
1 parent cc22d6b commit c174795
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ jobs:
build_windows:
runs-on: windows-2022
needs: build_unix
env:
PYCRYPTO: pycrypto-2.6.1-cp34-none-win32
outputs:
sha256_win: ${{ steps.sha256_win.outputs.sha256_win }}
sha512_win: ${{ steps.sha512_win.outputs.sha512_win }}
Expand Down Expand Up @@ -135,6 +137,23 @@ jobs:
echo "Version = $ytdl_version${sha+[ }${sha}${sha+]}"
# - name: Run PyInstaller Script
# run: python -m PyInstaller --onefile --console --distpath dist/ -n youtube-dl youtube_dl\__main__.py
- name: Cache PyCrypto
id: cache_pc
uses: actions/cache@v3
with:
key: ${{ env.PYCRYPTO }}
path: ./${{ env.PYCRYPTO }}
- name: Acquire PyCrypto
if: ${{ ! steps.cache_pc.outputs.cache-hit }}
shell: bash
run: |
mkdir -p ./${PYCRYPTO}
cd ${PYCRYPTO}
curl -L -O "https://web.archive.org/web/20200627032153/http://www.voidspace.org.uk/python/pycrypto-2.6.1/pycrypto-2.6.1-cp34-none-win32.whl"
- name: Install PyCrypto
shell: bash
run: |
python -m pip install ./${PYCRYPTO}/${PYCRYPTO}.whl
- name: Build EXE file
run: python setup.py py2exe
- name: Upload youtube-dl.exe Windows binary
Expand Down

0 comments on commit c174795

Please sign in to comment.