Files
gallery-dl/.github/workflows/executables.yml
Mike Fährmann 64978b5d37 build executables with Python 3.9 (#1922)
and also build a x86 Python 3.8 version for Windows 7 compatibility
2021-12-09 23:34:03 +01:00

40 lines
1020 B
YAML

name: executables
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-latest", "macOS-latest"]
python-version: ["3.9"]
architecture: ["x64"]
include:
- os: "windows-2016"
python-version: "3.8"
architecture: "x86"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.architecture }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Build executable
run: |
pip install requests==2.25.1 requests[socks] urllib3==1.25.11 yt-dlp pyinstaller
python scripts/pyinstaller.py
- name: Upload executable
uses: actions/upload-artifact@v2
with:
name: gallery-dl-${{ matrix.os }}-${{ matrix.architecture }}-${{ matrix.python-version }}
path: |
dist