diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 108 | ||||
| -rw-r--r-- | .github/workflows/curl.yml | 29 | ||||
| -rw-r--r-- | .github/workflows/libzip.yml | 68 |
3 files changed, 151 insertions, 54 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd2bdd5..a7c8fb7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,10 @@ name: build -on: [push] +on: + push: + pull_request: + schedule: + - cron: '0 0 1 * *' jobs: build-linux-ubuntu: @@ -14,42 +18,42 @@ jobs: run: | echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV - name: fetch libirecovery - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml name: libirecovery-latest_${{env.target_triplet}} repo: libimobiledevice/libirecovery - name: fetch libplist - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml name: libplist-latest_${{env.target_triplet}} repo: libimobiledevice/libplist - name: fetch libusbmuxd - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml name: libusbmuxd-latest_${{env.target_triplet}} repo: libimobiledevice/libusbmuxd - name: fetch libimobiledevice-glue - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml name: libimobiledevice-glue-latest_${{env.target_triplet}} repo: libimobiledevice/libimobiledevice-glue - name: fetch libimobiledevice - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml name: libimobiledevice-latest_${{env.target_triplet}} repo: libimobiledevice/libimobiledevice - name: fetch libtatsu - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml @@ -64,7 +68,7 @@ jobs: rm -rf extract/lib sudo cp -r extract/* / sudo ldconfig - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 - name: autogen @@ -79,7 +83,7 @@ jobs: DESTDIR=`pwd`/dest make install tar -C dest -cf idevicerestore.tar usr - name: publish artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: idevicerestore-latest_${{env.target_triplet}} path: idevicerestore.tar @@ -95,42 +99,42 @@ jobs: fi shell: bash - name: fetch libirecovery - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml name: libirecovery-latest_macOS repo: libimobiledevice/libirecovery - name: fetch libplist - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml name: libplist-latest_macOS repo: libimobiledevice/libplist - name: fetch libusbmuxd - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml name: libusbmuxd-latest_macOS repo: libimobiledevice/libusbmuxd - name: fetch libimobiledevice-glue - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml name: libimobiledevice-glue-latest_macOS repo: libimobiledevice/libimobiledevice-glue - name: fetch libimobiledevice - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml name: libimobiledevice-latest_macOS repo: libimobiledevice/libimobiledevice - name: fetch libtatsu - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml @@ -143,7 +147,7 @@ jobs: tar -C extract -xvf $I done sudo cp -r extract/* / - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: install additional requirements run: | SDKDIR=`xcrun --sdk macosx --show-sdk-path 2>/dev/null` @@ -184,12 +188,12 @@ jobs: DESTDIR=`pwd`/dest make install tar -C dest -cf idevicerestore.tar usr - name: publish artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: idevicerestore-latest_macOS path: idevicerestore.tar build-windows: - runs-on: windows-2019 + runs-on: ${{ matrix.runner }} defaults: run: shell: msys2 {0} @@ -197,8 +201,11 @@ jobs: fail-fast: false matrix: include: [ - { msystem: MINGW64, arch: x86_64 }, - { msystem: MINGW32, arch: i686 } + { runner: windows-latest, msystem: CLANG64, arch: x86_64, flavor: w64-clang, cc: clang }, + { runner: windows-latest, msystem: UCRT64, arch: x86_64, flavor: w64-ucrt, cc: gcc }, + { runner: windows-latest, msystem: MINGW64, arch: x86_64, flavor: w64, cc: gcc }, + { runner: windows-latest, msystem: MINGW32, arch: i686, flavor: w64, cc: gcc }, + { runner: windows-11-arm, msystem: CLANGARM64, arch: aarch64, flavor: w64-clang, cc: clang } ] steps: - uses: msys2/setup-msys2@v2 @@ -206,61 +213,65 @@ jobs: msystem: ${{ matrix.msystem }} release: false update: false + suppress-deprecation-warnings: msystem-mingw32 msystem-mingw64 install: >- base-devel git - mingw-w64-${{ matrix.arch }}-gcc + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-${{ matrix.cc }} make libtool autoconf automake-wrapper - liblzma + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-xz + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-bzip2 + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-openssl + pkg-config - name: prepare environment run: | dest=`echo ${{ matrix.msystem }} |tr [:upper:] [:lower:]` echo "dest=$dest" >> $GITHUB_ENV echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV - name: fetch libirecovery - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml - name: libirecovery-latest_${{ matrix.arch }}-${{ env.dest }} + name: libirecovery-latest_${{ matrix.arch }}-windows-${{ env.dest }} repo: libimobiledevice/libirecovery - name: fetch libplist - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml - name: libplist-latest_${{ matrix.arch }}-${{ env.dest }} + name: libplist-latest_${{ matrix.arch }}-windows-${{ env.dest }} repo: libimobiledevice/libplist - name: fetch libusbmuxd - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml - name: libusbmuxd-latest_${{ matrix.arch }}-${{ env.dest }} + name: libusbmuxd-latest_${{ matrix.arch }}-windows-${{ env.dest }} repo: libimobiledevice/libusbmuxd - name: fetch libimobiledevice-glue - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml - name: libimobiledevice-glue-latest_${{ matrix.arch }}-${{ env.dest }} + name: libimobiledevice-glue-latest_${{ matrix.arch }}-windows-${{ env.dest }} repo: libimobiledevice/libimobiledevice-glue - name: fetch libimobiledevice - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml - name: libimobiledevice-latest_${{ matrix.arch }}-${{ env.dest }} + name: libimobiledevice-latest_${{ matrix.arch }}-windows-${{ env.dest }} repo: libimobiledevice/libimobiledevice - name: fetch libtatsu - uses: dawidd6/action-download-artifact@v3 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml - name: libtatsu-latest_${{ matrix.arch }}-${{ env.dest }} + name: libtatsu-latest_${{ matrix.arch }}-windows-${{ env.dest }} repo: libimobiledevice/libtatsu - name: install external dependencies run: | @@ -269,25 +280,25 @@ jobs: tar -C extract -xvf $I done cp -r extract/* / - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: install additional requirements run: | - FILENAME="libzip-1.7.1-static.tar.bz2" - curl -o $FILENAME.b64 -Ls "https://gist.github.com/nikias/3da15d03120382f87b44029cd8495a02/raw/99cd8138fed99e8f6530b6f179f787342c698e1f/libzip-1.7.1_static_${{matrix.arch}}-${{env.dest}}.tar.bz2" + FILENAME="libzip-1.12.1-static.tar.bz2" + curl -o $FILENAME.b64 -Ls "https://gist.github.com/nikias/af98a111dc7e01c1a83a6c398a7bf230/raw/e651a1ed249daa1bede488f746b456449543194c/libzip-1.12.1-static_${{matrix.arch}}-windows-${{env.dest}}.tar.bz2" base64 -d < $FILENAME.b64 > $FILENAME mkdir deps tar -C deps -xjf $FILENAME echo "LIBZIP_CFLAGS=-I`pwd`/deps/include" >> $GITHUB_ENV echo "LIBZIP_LIBS=`pwd`/deps/lib/libzip.a /${{env.dest}}/lib/libbz2.a /${{env.dest}}/lib/liblzma.a " >> $GITHUB_ENV - FILENAME="libcurl-8.1.0-static.tar.bz2" - curl -o $FILENAME.b64 -Ls "https://gist.github.com/nikias/6c397a0a2f4f4eafd91b81cccd22b761/raw/85216e60af6787f3b351291165eb91bd585ff09a/libcurl-8.1.0-static-${{matrix.arch}}-${{env.dest}}.tar.bz2" + FILENAME="libcurl-8.10.1-static.tar.bz2" + curl -o $FILENAME.b64 -Ls "https://gist.githubusercontent.com/nikias/f988af36f51e4a6f28c36d52cafe7c83/raw/9a3612ea15d58da8e9574736d44e192732ce5446/libcurl-8.10.1-static-${{matrix.arch}}-windows-${{env.dest}}.tar.bz2" base64 -d < $FILENAME.b64 > $FILENAME tar -C deps -xjf $FILENAME echo "LIBCURL_CFLAGS=-I`pwd`/deps/include -DCURL_STATICLIB" >> $GITHUB_ENV echo "LIBCURL_LIBS=`pwd`/deps/lib/libcurl.a /${{env.dest}}/lib/libzstd.a -lws2_32 -lcrypt32 -lwldap32 -lbcrypt -lssl -lcrypto" >> $GITHUB_ENV - name: autogen run: | - ./autogen.sh CC=gcc CXX=g++ \ + ./autogen.sh PKG_CONFIG_PATH=/${{env.dest}}/lib/pkgconfig \ libzip_VERSION=1.7.1 libzip_CFLAGS="${{env.LIBZIP_CFLAGS}}" libzip_LIBS="${{env.LIBZIP_LIBS}}" \ zlib_LIBS="/${{env.dest}}/lib/libz.a" libcurl_CFLAGS="${{env.LIBCURL_CFLAGS}}" libcurl_LIBS="$LIBCURL_LIBS" - name: make @@ -300,7 +311,20 @@ jobs: DESTDIR=`pwd`/dest make install tar -C dest -cf idevicerestore.tar ${{ env.dest }} - name: publish artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: - name: idevicerestore-latest_${{ matrix.arch }}-${{ env.dest }} + name: idevicerestore-latest_${{ matrix.arch }}-windows-${{ env.dest }} path: idevicerestore.tar + build-docker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - name: build + run: | + pushd docker && ./build.sh; popd + docker image save -o idevicerestore-docker.tar idevicerestore-docker + - name: publish artifact + uses: actions/upload-artifact@v6 + with: + name: idevicerestore-latest_docker + path: idevicerestore-docker.tar diff --git a/.github/workflows/curl.yml b/.github/workflows/curl.yml index 87e4459..8712ede 100644 --- a/.github/workflows/curl.yml +++ b/.github/workflows/curl.yml @@ -4,7 +4,7 @@ on: workflow_dispatch jobs: build-windows: - runs-on: windows-2019 + runs-on: ${{ matrix.runner }} defaults: run: shell: msys2 {0} @@ -12,8 +12,11 @@ jobs: fail-fast: false matrix: include: [ - { msystem: MINGW64, arch: x86_64 }, - { msystem: MINGW32, arch: i686 } + { runner: windows-latest, msystem: CLANG64, arch: x86_64, flavor: w64-clang, cc: clang }, + { runner: windows-latest, msystem: UCRT64, arch: x86_64, flavor: w64-ucrt, cc: gcc }, + { runner: windows-latest, msystem: MINGW64, arch: x86_64, flavor: w64, cc: gcc }, + { runner: windows-latest, msystem: MINGW32, arch: i686, flavor: w64, cc: gcc }, + { runner: windows-11-arm, msystem: CLANGARM64, arch: aarch64, flavor: w64-clang, cc: clang } ] steps: - uses: msys2/setup-msys2@v2 @@ -21,38 +24,40 @@ jobs: msystem: ${{ matrix.msystem }} release: false update: false + suppress-deprecation-warnings: msystem-mingw32 msystem-mingw64 install: >- base-devel git - mingw-w64-${{ matrix.arch }}-gcc + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-${{ matrix.cc }} make libtool autoconf automake-wrapper liblzma + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-openssl - name: prepare environment run: | dest=`echo ${{ matrix.msystem }} |tr [:upper:] [:lower:]` echo "dest=$dest" >> $GITHUB_ENV - echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV + echo "target_triplet=`${{ matrix.cc }} -dumpmachine`" >> $GITHUB_ENV - name: fetch curl source run: | - curl -Ls -o curl-8.1.0.tar.bz2 https://github.com/curl/curl/releases/download/curl-8_1_0/curl-8.1.0.tar.bz2 - tar xjf curl-8.1.0.tar.bz2 + curl -Ls -o curl-8.23.0.tar.bz2 https://github.com/curl/curl/releases/download/curl-8_23_0/curl-8.23.0.tar.bz2 + tar xjf curl-8.23.0.tar.bz2 - name: configure curl run: | - cd curl-8.1.0 - ./configure --disable-ldap --disable-ldaps --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-mqtt --disable-manual --disable-threaded-resolver --disable-pthreads --disable-sspi --disable-aws --disable-ntlm --disable-ntlm-wb --disable-tls-srp --disable-unix-sockets --disable-doh --disable-mime --disable-bindlocal --disable-dnsshuffle --disable-alt-svc --disable-hsts --disable-websockets --with-openssl --without-brotli --without-libidn2 --without-ngtcp2 --without-quiche --without-msh3 --without-nghttp2 --without-libpsl + cd curl-8.23.0 + ./configure --disable-ldap --disable-ldaps --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-mqtt --disable-manual --disable-threaded-resolver --disable-pthreads --disable-sspi --disable-aws --disable-ntlm --disable-ntlm-wb --disable-tls-srp --disable-unix-sockets --disable-doh --disable-dnsshuffle --disable-alt-svc --disable-hsts --disable-websockets --with-openssl --without-brotli --without-libidn2 --without-ngtcp2 --without-quiche --without-msh3 --without-nghttp2 --without-libpsl - name: build libcurl run: | CURDIR=`pwd` - cd curl-8.1.0/lib + cd curl-8.23.0/lib make cp .libs/libcurl.a . cd .. tar cf $CURDIR/libcurl-static.tar lib/libcurl.a include/curl/*.h - name: publish artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v6 with: - name: libcurl_${{ matrix.arch }}-${{ env.dest }} + name: libcurl_${{ matrix.arch }}-windows-${{ env.dest }} path: libcurl-static.tar diff --git a/.github/workflows/libzip.yml b/.github/workflows/libzip.yml new file mode 100644 index 0000000..3d1fac4 --- /dev/null +++ b/.github/workflows/libzip.yml @@ -0,0 +1,68 @@ +name: build-libzip-static + +on: workflow_dispatch + +jobs: + build-windows: + runs-on: ${{ matrix.runner }} + defaults: + run: + shell: msys2 {0} + strategy: + fail-fast: false + matrix: + include: [ + { runner: windows-latest, msystem: CLANG64, arch: x86_64, flavor: w64-clang, cc: clang }, + { runner: windows-latest, msystem: UCRT64, arch: x86_64, flavor: w64-ucrt, cc: gcc }, + { runner: windows-latest, msystem: MINGW64, arch: x86_64, flavor: w64, cc: gcc }, + { runner: windows-latest, msystem: MINGW32, arch: i686, flavor: w64, cc: gcc }, + { runner: windows-11-arm, msystem: CLANGARM64, arch: aarch64, flavor: w64-clang, cc: clang } + ] + steps: + - uses: msys2/setup-msys2@v2 + with: + msystem: ${{ matrix.msystem }} + release: false + update: false + suppress-deprecation-warnings: msystem-mingw32 msystem-mingw64 + install: >- + base-devel + git + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-${{ matrix.cc }} + make + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-cmake + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-bzip2 + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-xz + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-zlib + - name: prepare environment + run: | + dest=`echo ${{ matrix.msystem }} |tr [:upper:] [:lower:]` + echo "dest=$dest" >> $GITHUB_ENV + echo "target_triplet=`${{ matrix.cc }} -dumpmachine`" >> $GITHUB_ENV + - name: fetch libzip source + run: | + curl -Ls -o libzip-1.12.1.tar.gz https://libzip.org/download/libzip-1.12.1.tar.gz + tar xzf libzip-1.12.1.tar.gz + - name: configure libzip + run: | + cd libzip-1.12.1 + mkdir -p dest + instpath=`pwd`/dest + echo "instpath=`pwd`/dest" >> $GITHUB_ENV + mkdir build + cd build + cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX:PATH="$instpath" -DBUILD_SHARED_LIBS=OFF -DBUILD_DOC=OFF -DBUILD_EXAMPLES=OFF -DBUILD_OSSFUZZ=OFF -DBUILD_REGRESS=OFF -DBUILD_TOOLS=OFF -DENABLE_GNUTLS=OFF -DENABLE_OPENSSL=OFF -DENABLE_ZSTD=OFF .. + - name: build libzip + run: | + CURDIR=`pwd` + cd libzip-1.12.1/build + echo $CURDIR + ls -l + make + make install + tar cf $CURDIR/libzip-static.tar -C ${{ env.instpath }} . + - name: publish artifact + uses: actions/upload-artifact@v6 + with: + name: libzip_${{ matrix.arch }}-windows-${{ env.dest }} + path: libzip-static.tar |
