diff options
Diffstat (limited to '.github/workflows/build.yml')
| -rw-r--r-- | .github/workflows/build.yml | 70 |
1 files changed, 39 insertions, 31 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fbbf10a..9132382 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,28 +18,28 @@ 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 libusbmuxd - uses: dawidd6/action-download-artifact@v6 + 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@v6 + 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 libtatsu - uses: dawidd6/action-download-artifact@v6 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml @@ -53,7 +53,7 @@ jobs: done sudo cp -r extract/* / sudo ldconfig - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 - name: autogen @@ -68,7 +68,7 @@ jobs: DESTDIR=`pwd`/dest make install tar -C dest -cf libimobiledevice.tar usr - name: publish artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: libimobiledevice-latest_${{env.target_triplet}} path: libimobiledevice.tar @@ -85,28 +85,28 @@ jobs: pip3 install --break-system-packages cython 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 libusbmuxd - uses: dawidd6/action-download-artifact@v6 + 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@v6 + 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 libtatsu - uses: dawidd6/action-download-artifact@v6 + uses: dawidd6/action-download-artifact@v24 with: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml @@ -119,7 +119,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: install additional requirements run: | mkdir -p lib @@ -172,12 +174,12 @@ jobs: DESTDIR=`pwd`/dest make install tar -C dest -cf libimobiledevice.tar usr - name: publish artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: libimobiledevice-latest_macOS path: libimobiledevice.tar build-windows: - runs-on: windows-latest + runs-on: ${{ matrix.runner }} defaults: run: shell: msys2 {0} @@ -185,8 +187,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 @@ -194,12 +199,13 @@ 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-w64-${{ matrix.arch }}-openssl + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-${{ matrix.cc }} + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-pkgconf + mingw-${{ matrix.flavor }}-${{ matrix.arch }}-openssl make libtool autoconf @@ -208,35 +214,35 @@ jobs: 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 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 }} + name: libplist-latest_${{ matrix.arch }}-windows-${{ env.dest }} repo: libimobiledevice/libplist - name: fetch libusbmuxd - uses: dawidd6/action-download-artifact@v6 + 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@v6 + 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 libtatsu - uses: dawidd6/action-download-artifact@v6 + 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: | @@ -245,9 +251,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++ --enable-debug + run: ./autogen.sh --enable-debug - name: make run: make - name: make install @@ -258,7 +266,7 @@ jobs: DESTDIR=`pwd`/dest make install tar -C dest -cf libimobiledevice.tar ${{ env.dest }} - name: publish artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: - name: libimobiledevice-latest_${{ matrix.arch }}-${{ env.dest }} + name: libimobiledevice-latest_${{ matrix.arch }}-windows-${{ env.dest }} path: libimobiledevice.tar |
