Remove unneeded things from build root

This commit is contained in:
Nick Chan committed 2024-04-19 23:58:28 +08:00
1 parent 29adf177cb
commit e7a880ec69
1 file changed
+4 -127
+4 -127
View File
@@ -76,9 +76,6 @@ jobs:
env: env:
MBEDTLS_VERSION: 3.5.2 MBEDTLS_VERSION: 3.5.2
READLINE_VERSION: 8.2 READLINE_VERSION: 8.2
SLANG_VERSION: 2.3.3
NEWT_VERSION: 0.52.23
POPT_VERSION: 1.19
steps: steps:
- name: Checkout - name: Checkout
@@ -100,18 +97,12 @@ jobs:
- name: Download dependencies (source code) - name: Download dependencies (source code)
run: | run: |
curl -LOOOOOO \ curl -LOO \
https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v${{ env.MBEDTLS_VERSION }}.tar.gz \ https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v${{ env.MBEDTLS_VERSION }}.tar.gz \
https://mirror-hk.koddos.net/gnu/readline/readline-${{ env.READLINE_VERSION }}.tar.gz \ https://mirror-hk.koddos.net/gnu/readline/readline-${{ env.READLINE_VERSION }}.tar.gz
https://www.jedsoft.org/releases/slang/slang-${{ env.SLANG_VERSION }}.tar.bz2 \
https://releases.pagure.org/newt/newt-${{ env.NEWT_VERSION }}.tar.gz \
https://github.com/rpm-software-management/popt/archive/refs/tags/popt-${{ env.POPT_VERSION }}-release.tar.gz
tar -xf v${{ env.MBEDTLS_VERSION }}.tar.gz tar -xf v${{ env.MBEDTLS_VERSION }}.tar.gz
tar -xf readline-${{ env.READLINE_VERSION }}.tar.gz tar -xf readline-${{ env.READLINE_VERSION }}.tar.gz
tar -xjf slang-${{ env.SLANG_VERSION }}.tar.bz2
tar -xf newt-${{ env.NEWT_VERSION }}.tar.gz
tar -xf popt-${{ env.POPT_VERSION }}-release.tar.gz
git clone --depth=1 https://github.com/libimobiledevice/libplist git clone --depth=1 https://github.com/libimobiledevice/libplist
git clone --depth=1 https://github.com/libimobiledevice/libimobiledevice-glue git clone --depth=1 https://github.com/libimobiledevice/libimobiledevice-glue
git clone --depth=1 https://github.com/libimobiledevice/libirecovery git clone --depth=1 https://github.com/libimobiledevice/libirecovery
@@ -214,51 +205,6 @@ jobs:
gmake -j$(sysctl -n hw.ncpu) install DESTDIR=${{ env.DESTDIR }} gmake -j$(sysctl -n hw.ncpu) install DESTDIR=${{ env.DESTDIR }}
cd .. cd ..
- name: Build S-Lang
run: |
cd slang-${{ env.SLANG_VERSION }}
./configure \
${{ env.CONFIGURE_ARGS }} \
--without-x \
--without-pcre \
--without-onig \
--without-z \
--without-png \
--without-iconv
gmake -j$(sysctl -n hw.ncpu) static
gmake -j$(sysctl -n hw.ncpu) install-static DESTDIR=${{ env.DESTDIR }}
cd ..
- name: Build popt
run: |
cd popt-popt-${{ env.POPT_VERSION }}-release
autoreconf -fiv
./configure \
${{ env.CONFIGURE_ARGS }} \
--without-libiconv-prefix \
--without-libintl-prefix \
--disable-nls \
--disable-werror
gmake -j$(sysctl -n hw.ncpu)
gmake -j$(sysctl -n hw.ncpu) install DESTDIR=${{ env.DESTDIR }}
cd ..
- name: Build newt
run: |
cd newt-${{ env.NEWT_VERSION }}
./configure \
${{ env.CONFIGURE_ARGS }} \
--with-readline=gnu \
--without-python \
--without-tcl \
--disable-nls
gmake -j$(sysctl -n hw.ncpu) libnewt.a
mkdir -p ${{ env.DESTDIR }}/usr/local/{lib/pkgconfig,include}
install -m644 libnewt.pc ${{ env.DESTDIR }}/usr/local/lib/pkgconfig
install -m644 libnewt.a ${{ env.DESTDIR }}/usr/local/lib
install -m644 newt.h ${{ env.DESTDIR }}/usr/local/include
cd ..
- name: Build libplist - name: Build libplist
run: | run: |
cd libplist cd libplist
@@ -534,10 +480,6 @@ jobs:
MBEDTLS_VERSION: 3.5.2 MBEDTLS_VERSION: 3.5.2
LIBUSB_VERSION: 1.0.26 LIBUSB_VERSION: 1.0.26
READLINE_VERSION: 8.2 READLINE_VERSION: 8.2
SLANG_VERSION: 2.3.3
NEWT_VERSION: 0.52.23
GPM_VERSION: 1.20.7
POPT_VERSION: 1.19
steps: steps:
- name: Checkout - name: Checkout
@@ -605,22 +547,14 @@ jobs:
- name: Download dependencies (source code) - name: Download dependencies (source code)
run: | run: |
curl -LOOOOOOO \ curl -LOOO \
https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v${{ env.MBEDTLS_VERSION }}.tar.gz \ https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/v${{ env.MBEDTLS_VERSION }}.tar.gz \
https://github.com/libusb/libusb/releases/download/v${{ env.LIBUSB_VERSION }}/libusb-${{ env.LIBUSB_VERSION }}.tar.bz2 \ https://github.com/libusb/libusb/releases/download/v${{ env.LIBUSB_VERSION }}/libusb-${{ env.LIBUSB_VERSION }}.tar.bz2 \
https://mirror-hk.koddos.net/gnu/readline/readline-${{ env.READLINE_VERSION }}.tar.gz \ https://mirror-hk.koddos.net/gnu/readline/readline-${{ env.READLINE_VERSION }}.tar.gz
https://www.jedsoft.org/releases/slang/slang-${{ env.SLANG_VERSION }}.tar.bz2 \
https://releases.pagure.org/newt/newt-${{ env.NEWT_VERSION }}.tar.gz \
https://github.com/telmich/gpm/archive/refs/tags/${{ env.GPM_VERSION }}.tar.gz \
https://github.com/rpm-software-management/popt/archive/refs/tags/popt-${{ env.POPT_VERSION }}-release.tar.gz
tar -xf v${{ env.MBEDTLS_VERSION }}.tar.gz tar -xf v${{ env.MBEDTLS_VERSION }}.tar.gz
tar -xjf libusb-${{ env.LIBUSB_VERSION }}.tar.bz2 tar -xjf libusb-${{ env.LIBUSB_VERSION }}.tar.bz2
tar -xf readline-${{ env.READLINE_VERSION }}.tar.gz tar -xf readline-${{ env.READLINE_VERSION }}.tar.gz
tar -xjf slang-${{ env.SLANG_VERSION }}.tar.bz2
tar -xf newt-${{ env.NEWT_VERSION }}.tar.gz
tar -xf ${{ env.GPM_VERSION }}.tar.gz
tar -xf popt-${{ env.POPT_VERSION }}-release.tar.gz
git clone --depth=1 https://github.com/libimobiledevice/libplist git clone --depth=1 https://github.com/libimobiledevice/libplist
git clone --depth=1 https://github.com/libimobiledevice/libimobiledevice-glue git clone --depth=1 https://github.com/libimobiledevice/libimobiledevice-glue
git clone --depth=1 https://github.com/libimobiledevice/libirecovery git clone --depth=1 https://github.com/libimobiledevice/libirecovery
@@ -668,63 +602,6 @@ jobs:
make -j$(nproc) install DESTDIR=${{ env.DESTDIR }} make -j$(nproc) install DESTDIR=${{ env.DESTDIR }}
cd .. cd ..
- name: Build S-Lang
run: |
cd slang-${{ env.SLANG_VERSION }}
./configure \
${{ env.CONFIGURE_ARGS }} \
--without-x \
--without-pcre \
--without-onig \
--without-z \
--without-png \
--without-iconv
gmake -j$(sysctl -n hw.ncpu) static
gmake -j$(sysctl -n hw.ncpu) install-static DESTDIR=${{ env.DESTDIR }}
cd ..
- name: Build GPM
run: |
cd gpm-${{ env.GPM_VERSION }}
cat ../patches/gpm/*.patch | patch -sN -d . -p1
./autogen.sh
./configure \
${{ env.CONFIGURE_ARGS }}
gmake -j$(sysctl -n hw.ncpu)
gmake -j$(sysctl -n hw.ncpu) install DESTDIR=${{ env.DESTDIR }}
cd ..
- name: Build popt
run: |
cd popt-popt-${{ env.POPT_VERSION }}-release
autoreconf -fiv
./configure \
${{ env.CONFIGURE_ARGS }} \
--without-libiconv-prefix \
--without-libintl-prefix \
--disable-nls \
--disable-werror
gmake -j$(sysctl -n hw.ncpu)
gmake -j$(sysctl -n hw.ncpu) install DESTDIR=${{ env.DESTDIR }}
cd ..
- name: Build newt
run: |
cd newt-${{ env.NEWT_VERSION }}
./configure \
${{ env.CONFIGURE_ARGS }} \
--with-readline=gnu \
--without-python \
--without-tcl \
--disable-nls \
--with-gpm-support
gmake -j$(sysctl -n hw.ncpu) libnewt.a
mkdir -p ${{ env.DESTDIR }}/usr/local/{lib/pkgconfig,include}
install -m644 libnewt.pc ${{ env.DESTDIR }}/usr/local/lib/pkgconfig
install -m644 libnewt.a ${{ env.DESTDIR }}/usr/local/lib
install -m644 newt.h ${{ env.DESTDIR }}/usr/local/include
cd ..
- name: Build libplist - name: Build libplist
run: | run: |
cd libplist cd libplist