add macos build workflow & update workflows

This commit is contained in:
uncor3
2025-10-24 09:38:18 +00:00
parent 5749b87926
commit a0846bd9de
3 changed files with 114 additions and 4 deletions
+1 -3
View File
@@ -42,9 +42,7 @@ jobs:
libpugixml-dev \
libusb-1.0-0-dev \
libqrencode-dev \
libirecovery-1.0-dev \
libcurl4-openssl-dev \
libusbmuxd-dev \
libssl-dev \
libtool-bin \
libreadline-dev \
@@ -100,7 +98,7 @@ jobs:
base_url="https://github.com/libimobiledevice"
libs=( "libplist" "libtatsu" "libimobiledevice-glue" "libimobiledevice" "libirecovery" "ifuse" "libusbmuxd" )
libs=( "libplist" "libtatsu" "libimobiledevice-glue" "libusbmuxd" "libimobiledevice" "libirecovery" "ifuse" )
for name in "${libs[@]}"; do
ver_var=$(echo "${name^^}_VER" | sed 's/-/_/g') # e.g. LIBPLIST_VER
+112
View File
@@ -0,0 +1,112 @@
name: Build macOS
on:
workflow_dispatch:
env:
QT_VERSION: "6.7.2"
GO_VERSION: "1.23.0"
LIBPLIST_VER: "2.7.0"
LIBTATSU_VER: "1.0.5"
LIBIMOBILEDEVICE_GLUE_VER: "1.3.2"
LIBIMOBILEDEVICE_VER: "1.4.0"
LIBIRECOVERY_VER: "1.3.1"
LIBUSBMUXD_VER: "2.1.1"
jobs:
build-macos:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: "recursive"
token: ${{ secrets.PAT }}
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: "6.7.2"
modules: "qtmultimedia qtlocation qtpositioning qtserialport"
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "^1.23.0"
- name: Install macOS dependencies
run: |
brew install \
autoconf \
automake \
libtool \
pkg-config \
pugixml \
libusb \
qrencode \
curl \
openssl \
libzip \
libheif
- name: Build libimobiledevice suite (versioned tarballs)
run: |
set -euo pipefail
workspace="$PWD"
tmp="$PWD/_tmp_libs"
mkdir -p "$tmp"
cd "$tmp"
base_url="https://github.com/libimobiledevice"
libs=( "libplist" "libtatsu" "libimobiledevice-glue" "libusbmuxd" "libimobiledevice" "libirecovery")
for name in "${libs[@]}"; do
ver_var=$(echo "${name^^}_VER" | sed 's/-/_/g') # e.g. LIBPLIST_VER
ver="${!ver_var:-}"
if [ -z "$ver" ]; then
echo "Version for $name not set (env var $ver_var)"
exit 1
fi
archive="${name}-${ver}.tar.bz2"
url="${base_url}/${name}/releases/download/${ver}/${archive}"
echo "=== Processing $name $ver ==="
echo "URL: $url"
curl -L -o "$archive" "$url"
echo "Extracting $archive"
tar xjf "$archive"
srcdir="${name}-${ver}"
pushd "$srcdir"
# Point configure to the Homebrew-installed OpenSSL
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
./configure
make -j"$(sysctl -n hw.ncpu)" && sudo make install
popd
echo "Installed $name $ver"
done
# cleanup
cd "$workspace"
rm -rf "$tmp"
- name: Configure CMake
run: |
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release -DRUN_CLANG_TIDY=OFF
- name: Build with CMake
run: cmake --build build --config Release
- name: Deploy Qt dependencies
run: |
macdeployqt build/iDescriptor.app -qmldir=qml -verbose=1 -dmg
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: iDescriptor-macOS
path: build/*.dmg
+1 -1
View File
@@ -121,7 +121,7 @@ jobs:
base_url="https://github.com/libimobiledevice"
libs=( "libplist" "libtatsu" "libimobiledevice-glue" "libimobiledevice" "libirecovery" "libusbmuxd" )
libs=( "libplist" "libtatsu" "libimobiledevice-glue" "libusbmuxd" "libimobiledevice" "libirecovery" )
for name in "${libs[@]}"; do
ver_var=$(echo "${name^^}_VER" | sed 's/-/_/g')