build zstd

This commit is contained in:
Jesse Bannon 2023-02-23 09:52:45 -08:00
parent f8adb78ee9
commit 47fd6eac95

View file

@ -70,12 +70,19 @@ jobs:
- 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
- name: Install Python - name: Install base packages
run: | - run:
cat /etc/os-release cat /etc/os-release
dnf update -y dnf update -y
dnf install -y epel-release tar zstd dnf install -y epel-release tar wget make gcc openssl-devel bzip2-devel libffi-devel zlib-devel
dnf install -y gcc openssl-devel bzip2-devel libffi-devel zlib-devel wget make - name: Install zstd
run: |
wget https://github.com/facebook/zstd/archive/refs/tags/v1.5.4.tar.gz
tar -xf v1.5.4.tar.gz
cd v1.5.4 && make install
zstd --quiet --version
- name: Install Python
run: |
wget https://www.python.org/ftp/python/3.10.10/Python-3.10.10.tar.xz wget https://www.python.org/ftp/python/3.10.10/Python-3.10.10.tar.xz
tar -xf 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" cd Python-3.10.10 && ./configure --with-ensurepip=install --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"