2021-02-16 02:47:30 +01:00
|
|
|
name: executables
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2023-04-18 20:45:48 +02:00
|
|
|
os: ["windows-latest", "macOS-latest"]
|
2021-12-09 23:34:03 +01:00
|
|
|
architecture: ["x64"]
|
2023-10-14 14:48:40 +02:00
|
|
|
python-version: ["3.12"]
|
2023-04-18 20:45:48 +02:00
|
|
|
python-packages: [""]
|
|
|
|
include:
|
|
|
|
- os: "ubuntu-latest"
|
|
|
|
architecture: "x64"
|
2023-10-14 14:48:40 +02:00
|
|
|
python-version: "3.12"
|
2023-04-18 20:45:48 +02:00
|
|
|
python-packages: "secretstorage"
|
2022-03-14 18:06:36 +01:00
|
|
|
- os: "windows-2019"
|
2021-12-09 23:34:03 +01:00
|
|
|
architecture: "x86"
|
2023-04-18 20:45:48 +02:00
|
|
|
python-version: "3.8"
|
|
|
|
python-packages: "toml"
|
2021-02-16 02:47:30 +01:00
|
|
|
|
|
|
|
steps:
|
2022-10-25 15:49:39 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-02-16 02:47:30 +01:00
|
|
|
|
2021-12-09 23:34:03 +01:00
|
|
|
- name: Set up Python ${{ matrix.python-version }} ${{ matrix.architecture }}
|
2022-10-25 15:49:39 +02:00
|
|
|
uses: actions/setup-python@v4
|
2021-02-16 02:47:30 +01:00
|
|
|
with:
|
2021-12-09 23:34:03 +01:00
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
architecture: ${{ matrix.architecture }}
|
2021-02-16 02:47:30 +01:00
|
|
|
|
|
|
|
- name: Build executable
|
|
|
|
run: |
|
2023-04-18 20:45:48 +02:00
|
|
|
pip install requests requests[socks] yt-dlp pyyaml ${{ matrix.python-packages }} pyinstaller
|
2021-02-16 02:47:30 +01:00
|
|
|
python scripts/pyinstaller.py
|
|
|
|
|
|
|
|
- name: Upload executable
|
2022-10-25 15:49:39 +02:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-02-16 02:47:30 +01:00
|
|
|
with:
|
2021-12-09 23:34:03 +01:00
|
|
|
name: gallery-dl-${{ matrix.os }}-${{ matrix.architecture }}-${{ matrix.python-version }}
|
2021-02-16 02:47:30 +01:00
|
|
|
path: |
|
|
|
|
dist
|