mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-26 04:32:51 +01:00
40 lines
996 B
YAML
40 lines
996 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.10"]
|
|
architecture: ["x64"]
|
|
include:
|
|
- os: "windows-2019"
|
|
python-version: "3.8"
|
|
architecture: "x86"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.architecture }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
architecture: ${{ matrix.architecture }}
|
|
|
|
- name: Build executable
|
|
run: |
|
|
pip install requests requests[socks] yt-dlp pyinstaller
|
|
python scripts/pyinstaller.py
|
|
|
|
- name: Upload executable
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: gallery-dl-${{ matrix.os }}-${{ matrix.architecture }}-${{ matrix.python-version }}
|
|
path: |
|
|
dist
|