From e7a880ec694771de5e71178f01fdd297e5c62c6a Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Fri, 19 Apr 2024 23:58:28 +0800 Subject: [PATCH] Remove unneeded things from build root --- .github/workflows/build.yml | 131 ++---------------------------------- 1 file changed, 4 insertions(+), 127 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 714779f..f1cafdd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,9 +76,6 @@ jobs: env: MBEDTLS_VERSION: 3.5.2 READLINE_VERSION: 8.2 - SLANG_VERSION: 2.3.3 - NEWT_VERSION: 0.52.23 - POPT_VERSION: 1.19 steps: - name: Checkout @@ -100,18 +97,12 @@ jobs: - name: Download dependencies (source code) run: | - curl -LOOOOOO \ + curl -LOO \ 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://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 + https://mirror-hk.koddos.net/gnu/readline/readline-${{ env.READLINE_VERSION }}.tar.gz tar -xf v${{ env.MBEDTLS_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/libimobiledevice-glue git clone --depth=1 https://github.com/libimobiledevice/libirecovery @@ -214,51 +205,6 @@ jobs: gmake -j$(sysctl -n hw.ncpu) install DESTDIR=${{ env.DESTDIR }} 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 run: | cd libplist @@ -534,10 +480,6 @@ jobs: MBEDTLS_VERSION: 3.5.2 LIBUSB_VERSION: 1.0.26 READLINE_VERSION: 8.2 - SLANG_VERSION: 2.3.3 - NEWT_VERSION: 0.52.23 - GPM_VERSION: 1.20.7 - POPT_VERSION: 1.19 steps: - name: Checkout @@ -605,22 +547,14 @@ jobs: - name: Download dependencies (source code) run: | - curl -LOOOOOOO \ + curl -LOOO \ 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://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 + https://mirror-hk.koddos.net/gnu/readline/readline-${{ env.READLINE_VERSION }}.tar.gz tar -xf v${{ env.MBEDTLS_VERSION }}.tar.gz tar -xjf libusb-${{ env.LIBUSB_VERSION }}.tar.bz2 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/libimobiledevice-glue git clone --depth=1 https://github.com/libimobiledevice/libirecovery @@ -668,63 +602,6 @@ jobs: make -j$(nproc) install DESTDIR=${{ env.DESTDIR }} 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 run: | cd libplist