FIX: Update python 3.12 build to RC3 #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows Build Python 3.12 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12.0-rc.3' | |
- run: pip install pyinstaller-versionfile | |
- name: Download FFMPEG binaries | |
run: | | |
C:\msys64\usr\bin\wget.exe https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl.zip | |
7z x ffmpeg-master-latest-win64-gpl.zip | |
cp ffmpeg-master-latest-win64-gpl/bin/ffmpeg.exe . | |
cp ffmpeg-master-latest-win64-gpl/bin/ffprobe.exe . | |
ffmpeg -version | |
- name: Create version.txt for PyInstaller | |
run: create-version-file version.yml --outfile version.txt | |
- name: PyInstaller Windows | |
uses: aliencaocao/pyinstaller_action@main | |
with: | |
python_ver: '3.12.0-rc.3' # https://github.com/actions/python-versions/blob/main/versions-manifest.json | |
spec: 'yt-dlp-gui.spec' | |
requirements: 'requirements.txt' | |
upload_exe_with_name: 'yt-dlp-gui.exe' |