From 2bc3f46b6f76a5a2a647b88224b24bb9e39426c7 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 16 Nov 2026 01:33:31 +0100 Subject: [github-actions] Update build workflow --- .github/workflows/build.yml | 52 ++++++++++++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 20 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 600e9c6..23f51d6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,7 @@ name: build on: push: + pull_request: schedule: - cron: '0 0 1 * *' @@ -17,14 +18,14 @@ jobs: run: | echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV - name: fetch libplist - uses: dawidd6/action-download-artifact@v6 + 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 libimobiledevice-glue - uses: dawidd6/action-download-artifact@v6 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml @@ -38,7 +39,9 @@ jobs: done sudo cp -r extract/* / sudo ldconfig - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 + with: + fetch-depth: 0 - name: autogen run: ./autogen.sh PKG_CONFIG_PATH=/usr/local/lib/pkgconfig LDFLAGS="-Wl,-rpath=/usr/local/lib" - name: make @@ -49,9 +52,9 @@ jobs: run: | mkdir -p dest DESTDIR=`pwd`/dest make install - tar -C dest -cf libirecovery.tar --strip-components 1 . + tar -C dest -cf libirecovery.tar usr - name: publish artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: libirecovery-latest_${{env.target_triplet}} path: libirecovery.tar @@ -67,14 +70,14 @@ jobs: fi shell: bash - name: fetch libplist - uses: dawidd6/action-download-artifact@v6 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml name: libplist-latest_macOS repo: libimobiledevice/libplist - name: fetch libimobiledevice-glue - uses: dawidd6/action-download-artifact@v6 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml @@ -87,7 +90,9 @@ jobs: tar -C extract -xvf $I done sudo cp -r extract/* / - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 + with: + fetch-depth: 0 - name: autogen run: | SDKDIR=`xcrun --sdk macosx --show-sdk-path` @@ -109,14 +114,14 @@ jobs: run: | mkdir -p dest DESTDIR=`pwd`/dest make install - tar -C dest -cf libirecovery.tar --strip-components 1 . + tar -C dest -cf libirecovery.tar usr - name: publish artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: libirecovery-latest_macOS path: libirecovery.tar build-windows: - runs-on: windows-latest + runs-on: ${{ matrix.runner }} defaults: run: shell: msys2 {0} @@ -124,8 +129,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 @@ -133,11 +141,12 @@ 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-w64-${{ matrix.arch }}-pkg-config + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-${{ matrix.cc }} + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-pkgconf make libtool autoconf @@ -147,15 +156,16 @@ jobs: dest=`echo ${{ matrix.msystem }} |tr [:upper:] [:lower:]` echo "dest=$dest" >> $GITHUB_ENV echo "target_triplet=`gcc -dumpmachine`" >> $GITHUB_ENV + git config --global core.autocrlf false - name: fetch libplist - uses: dawidd6/action-download-artifact@v6 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml name: libplist-latest_${{ matrix.arch }}-${{ env.dest }} repo: libimobiledevice/libplist - name: fetch libimobiledevice-glue - uses: dawidd6/action-download-artifact@v6 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml @@ -168,9 +178,11 @@ jobs: tar -C extract -xvf $I done cp -r extract/* / - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 + with: + fetch-depth: 0 - name: autogen - run: ./autogen.sh CC=gcc CXX=g++ + run: ./autogen.sh - name: make run: make - name: make install @@ -181,7 +193,7 @@ jobs: DESTDIR=`pwd`/dest make install tar -C dest -cf libirecovery.tar ${{ env.dest }} - name: publish artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: libirecovery-latest_${{ matrix.arch }}-${{ env.dest }} path: libirecovery.tar -- cgit v1.1-32-gdbae