[RELEASE] Use older glibc for linux build (#468)
This commit is contained in:
parent
ebd30f224e
commit
02f8a3c2a2
1 changed files with 16 additions and 5 deletions
21
.github/workflows/release.yaml
vendored
21
.github/workflows/release.yaml
vendored
|
|
@ -58,17 +58,28 @@ jobs:
|
||||||
needs:
|
needs:
|
||||||
- version
|
- version
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: quay.io/pypa/manylinux_2_28_x86_64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Write version to init file
|
- name: Write version to init file
|
||||||
run: |
|
run: |
|
||||||
echo '${{ needs.version.outputs.init_contents }}' > src/ytdl_sub/__init__.py
|
echo '${{ needs.version.outputs.init_contents }}' > src/ytdl_sub/__init__.py
|
||||||
- uses: actions/setup-python@v4
|
- name: Install Python
|
||||||
with:
|
|
||||||
python-version: '3.10'
|
|
||||||
- name: Install and Package
|
|
||||||
run: |
|
run: |
|
||||||
pip install -e .[build]
|
cat /etc/os-release
|
||||||
|
dnf update -y
|
||||||
|
dnf install -y epel-release
|
||||||
|
dnf install -y gcc openssl-devel bzip2-devel libffi-devel zlib-devel wget make
|
||||||
|
wget https://www.python.org/ftp/python/3.10.10/Python-3.10.10.tar.xz
|
||||||
|
tar -xf Python-3.10.10.tar.xz
|
||||||
|
cd Python-3.10.10 && ./configure --with-ensurepip=install --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
|
||||||
|
make -j 8
|
||||||
|
make altinstall
|
||||||
|
python3.10 --version
|
||||||
|
- name: Build Package
|
||||||
|
run: |
|
||||||
|
python3.10 -m pip install --upgrade pip
|
||||||
|
python3.10 -m pip install -e .[build]
|
||||||
# Build executable
|
# Build executable
|
||||||
pyinstaller ytdl-sub.spec
|
pyinstaller ytdl-sub.spec
|
||||||
mkdir -p /opt/builds
|
mkdir -p /opt/builds
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue