summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2026-12-03 09:26:05 +0100
committerGravatar Nikias Bassen2026-12-03 09:26:05 +0100
commit749ec61b5c2f94af0ab2b5e09579fe0ea6fdd27f (patch)
treed30b36a2fdf234e5d130a5458ff09ba1a35d8330 /.github/workflows
parent74c0aa2a3ec2b15520b5a37fc5714ad2d00f2dd2 (diff)
downloadidevicerestore-749ec61b5c2f94af0ab2b5e09579fe0ea6fdd27f.tar.gz
idevicerestore-749ec61b5c2f94af0ab2b5e09579fe0ea6fdd27f.tar.bz2
[github-actions] Updated build workflow
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml40
1 files changed, 22 insertions, 18 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1ac8bd2..a7c8fb7 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -193,7 +193,7 @@ jobs:
name: idevicerestore-latest_macOS
path: idevicerestore.tar
build-windows:
- runs-on: windows-latest
+ runs-on: ${{ matrix.runner }}
defaults:
run:
shell: msys2 {0}
@@ -201,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
@@ -210,17 +213,18 @@ 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
- mingw-w64-${{ matrix.arch }}-xz
- mingw-w64-${{ matrix.arch }}-bzip2
- mingw-w64-${{ matrix.arch }}-openssl
+ mingw-${{ matrix.flavor }}-${{ matrix.arch }}-xz
+ mingw-${{ matrix.flavor }}-${{ matrix.arch }}-bzip2
+ mingw-${{ matrix.flavor }}-${{ matrix.arch }}-openssl
pkg-config
- name: prepare environment
run: |
@@ -232,42 +236,42 @@ jobs:
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@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@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@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@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@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: |
@@ -279,15 +283,15 @@ jobs:
- 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
@@ -309,7 +313,7 @@ jobs:
- name: publish artifact
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