mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-21 21:05:00 +01:00
build ncurses in actions
This commit is contained in:
1 parent
49ffa55508
commit
16bc18fbc2
1 file changed
+66
-2
@@ -27,6 +27,7 @@ jobs:
|
|||||||
MBEDTLS_VERSION: 3.3.0
|
MBEDTLS_VERSION: 3.3.0
|
||||||
LIBUSB_VERSION: 1.0.26
|
LIBUSB_VERSION: 1.0.26
|
||||||
READLINE_VERSION: 8.2
|
READLINE_VERSION: 8.2
|
||||||
|
NCURSES_VERSION: 6.4
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -55,10 +56,12 @@ jobs:
|
|||||||
curl -LOOO \
|
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://mirror-hk.koddos.net/gnu/ncurses/ncurses-${{ env.NCURSES_VERSION }}.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 -xf ncurses-${{ env.NCURSES_VERSION }}.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
|
||||||
@@ -112,6 +115,35 @@ jobs:
|
|||||||
gsed -E /'__API_UNAVAILABLE'/d < ${TARGET_SYSROOT}/usr/include/pthread.h > sysroot/usr/local/include/pthread.h
|
gsed -E /'__API_UNAVAILABLE'/d < ${TARGET_SYSROOT}/usr/include/pthread.h > sysroot/usr/local/include/pthread.h
|
||||||
gsed -i -E s/'__API_UNAVAILABLE\(.*\)'// sysroot/usr/local/include/IOKit/IOKitLib.h
|
gsed -i -E s/'__API_UNAVAILABLE\(.*\)'// sysroot/usr/local/include/IOKit/IOKitLib.h
|
||||||
|
|
||||||
|
- name: Build ncurses
|
||||||
|
run: |
|
||||||
|
cd ncurses-${{ env.NCURSES_VERSION }}
|
||||||
|
./configure \
|
||||||
|
--with-build-cc="${{ env.CC }}" \
|
||||||
|
--with-build-cflags="-Os" \
|
||||||
|
--with-build-cpp="${{ env.CC }} -E" \
|
||||||
|
--with-build-cppflags=" " \
|
||||||
|
--with-build-ldflags=" " \
|
||||||
|
--with-pthread \
|
||||||
|
--disable-overwrite \
|
||||||
|
--without-debug \
|
||||||
|
--without-tests \
|
||||||
|
--enable-sigwinch \
|
||||||
|
--enable-const \
|
||||||
|
--enable-symlinks \
|
||||||
|
--enable-termcap \
|
||||||
|
--enable-pc-files \
|
||||||
|
--without-x11-rgb \
|
||||||
|
--with-pkg-config-libdir="${{ env.PREFIX }}/lib/pkgconfig" \
|
||||||
|
--enable-widec \
|
||||||
|
--with-default-terminfo-dir="/usr/share/terminfo" \
|
||||||
|
--with-terminfo-dirs="/opt/homebrew/share/terminfo:/usr/local/share/terminfo:/usr/share/terminfo" \
|
||||||
|
LDFLAGS="${{ env.LDFLAGS }}" \
|
||||||
|
PKG_CONFIG_LIBDIR="${{ env.PREFIX }}/lib/pkgconfig"
|
||||||
|
gmake -j$(sysctl -n hw.ncpu)
|
||||||
|
gmake -j$(sysctl -n hw.ncpu) install DESTDIR=${{ env.DESTDIR }}
|
||||||
|
cd ..
|
||||||
|
|
||||||
- name: Build Mbed TLS
|
- name: Build Mbed TLS
|
||||||
run: |
|
run: |
|
||||||
cd mbedtls-${{ env.MBEDTLS_VERSION }}
|
cd mbedtls-${{ env.MBEDTLS_VERSION }}
|
||||||
@@ -320,6 +352,7 @@ jobs:
|
|||||||
MBEDTLS_VERSION: 3.3.0
|
MBEDTLS_VERSION: 3.3.0
|
||||||
LIBUSB_VERSION: 1.0.26
|
LIBUSB_VERSION: 1.0.26
|
||||||
READLINE_VERSION: 8.2
|
READLINE_VERSION: 8.2
|
||||||
|
NCURSES_VERSION: 6.4
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -392,16 +425,47 @@ jobs:
|
|||||||
curl -LOOO \
|
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://mirror-hk.koddos.net/gnu/ncurses/ncurses-${{ env.NCURSES_VERSION }}.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 -xf ncurses-${{ env.NCURSES_VERSION }}.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
|
||||||
git clone --depth=1 https://github.com/libimobiledevice/libusbmuxd
|
git clone --depth=1 https://github.com/libimobiledevice/libusbmuxd
|
||||||
git clone --depth=1 https://github.com/libimobiledevice/libimobiledevice
|
git clone --depth=1 https://github.com/libimobiledevice/libimobiledevice
|
||||||
|
|
||||||
|
- name: Build ncurses
|
||||||
|
run: |
|
||||||
|
cd ncurses-${{ env.NCURSES_VERSION }}
|
||||||
|
./configure \
|
||||||
|
--with-build-cc="cc" \
|
||||||
|
--with-build-cflags=" " \
|
||||||
|
--with-build-cpp="cc -E" \
|
||||||
|
--with-build-cppflags=" " \
|
||||||
|
--with-build-ldflags=" " \
|
||||||
|
--with-pthread \
|
||||||
|
--disable-overwrite \
|
||||||
|
--without-debug \
|
||||||
|
--without-tests \
|
||||||
|
--enable-sigwinch \
|
||||||
|
--enable-const \
|
||||||
|
--enable-symlinks \
|
||||||
|
--enable-termcap \
|
||||||
|
--enable-pc-files \
|
||||||
|
--without-x11-rgb \
|
||||||
|
--with-pkg-config-libdir="${{ env.PREFIX }}/lib/pkgconfig" \
|
||||||
|
--enable-widec \
|
||||||
|
--with-default-terminfo-dir="/usr/share/terminfo" \
|
||||||
|
--with-terminfo-dirs="/usr/share/terminfo:/lib/terminfo:/usr/lib/terminfo:/usr/local/share/terminfo:/usr/local/lib/terminfo:/data/data/com.termux/files/usr/share/terminfo" \
|
||||||
|
LDFLAGS="${{ env.LDFLAGS }}" \
|
||||||
|
PKG_CONFIG_LIBDIR="${{ env.PREFIX }}/lib/pkgconfig"
|
||||||
|
gmake -j$(sysctl -n hw.ncpu)
|
||||||
|
gmake -j$(sysctl -n hw.ncpu) install DESTDIR=${{ env.DESTDIR }}
|
||||||
|
cd ..
|
||||||
|
|
||||||
- name: Build Mbed TLS
|
- name: Build Mbed TLS
|
||||||
run: |
|
run: |
|
||||||
cd mbedtls-${{ env.MBEDTLS_VERSION }}
|
cd mbedtls-${{ env.MBEDTLS_VERSION }}
|
||||||
|
|||||||
Reference in new issue
Block a user