diff options
| author | 2026-12-03 09:25:45 +0100 | |
|---|---|---|
| committer | 2026-12-03 09:25:45 +0100 | |
| commit | 74c0aa2a3ec2b15520b5a37fc5714ad2d00f2dd2 (patch) | |
| tree | d3393ff90d1728aad4da888bc73ee9eab4b6d83d | |
| parent | ed14f0693d80947f539c2a7597999fb90ee1dcf9 (diff) | |
| download | idevicerestore-74c0aa2a3ec2b15520b5a37fc5714ad2d00f2dd2.tar.gz idevicerestore-74c0aa2a3ec2b15520b5a37fc5714ad2d00f2dd2.tar.bz2 | |
[github-actions] Add libzip workflow
| -rw-r--r-- | .github/workflows/libzip.yml | 68 |
1 files changed, 68 insertions, 0 deletions
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 |
