Skip to content

- fixing file progress #69

- fixing file progress

- fixing file progress #69

name: Build CLI (Linux x32,x64)
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build-pornfetch-cli-linux-64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
if [ -f requirements_cli.txt ]; then pip install -r requirements_cli.txt; fi
- name: Build Porn Fetch (CLI) (PyInstaller - Termux)
run: |
pyinstaller -F Porn_Fetch_CLI.py && cd dist && mv Porn_Fetch_CLI PornFetch_Linux_CLI_x64 && chmod +x PornFetch_Linux_CLI_x64
- name: Archive Porn Fetch CLI (Linux_64) build
uses: actions/upload-artifact@v2
with:
name: PornFetch_Linux_CLI_x64
path: dist/PornFetch_Linux_CLI_x64
build-pornfetch-cli-linux-32:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies for building Python
run: |
sudo apt-get update
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y build-essential gcc-multilib libffi-dev zlib1g-dev libbz2-dev libsqlite3-dev binutils-dev libsqlite3-dev libgdbm-dev libc6-dev libbz2-dev
sudo apt-get install -y libfl-dev libncurses5:i386 libncursesw5:i386 libtinfo5:i386 zlib1g:i386 zlib1g-dev:i386 openssl libssl-dev libbz2-dev:i386 libgdbm-compat-dev:i386 libgdbm-dev:i386 libssl-dev:i386 libsqlite3-dev:i386 tk-dev:i386 libx11-dev:i386 libreadline-dev:i386 libffi-dev:i386 libncurses5-dev:i386 libncursesw5-dev:i386 liblzma-dev:i386 uuid-dev:i386
- name: Download and build Python 3.11 for x32
run: |
wget https://www.python.org/ftp/python/3.11.6/Python-3.11.6.tgz
tar -xzf Python-3.11.6.tgz
cd Python-3.11.6
CFLAGS="-m32" LDFLAGS="-m32" ./configure --prefix=/usr/local/python-32 --with-ensurepip=install --enable-shared
make -j $(nproc)
sudo make altinstall
env:
LD_LIBRARY_PATH: /usr/local/lib
- name: Install Python packages
run: |
export LD_LIBRARY_PATH=/usr/local/python-32/lib:$LD_LIBRARY_PATH
/usr/local/python-32/bin/python3.11 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install pyinstaller
pip install -r requirements_cli.txt
- name: Build Porn Fetch (CLI) (PyInstaller - Termux)
run: |
export LD_LIBRARY_PATH=/usr/local/python-32/lib:$LD_LIBRARY_PATH
source venv/bin/activate
pyinstaller -F Porn_Fetch_CLI.py && cd dist && mv Porn_Fetch_CLI PornFetch_Linux_CLI_x32 && chmod +x PornFetch_Linux_CLI_x32
- name: Archive Porn Fetch CLI (Linux_32) build
uses: actions/upload-artifact@v2
with:
name: PornFetch_Linux_CLI_x32
path: dist/PornFetch_Linux_CLI_x32