mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-21 19:35:49 +08:00
update build workflows
This commit is contained in:
@@ -16,7 +16,7 @@ on:
|
||||
default: "dev"
|
||||
env:
|
||||
QT_VERSION: "6.7.2"
|
||||
GO_VERSION: "1.23.0"
|
||||
GO_VERSION: "1.23.4"
|
||||
LIBPLIST_VER: "2.7.0"
|
||||
LIBTATSU_VER: "1.0.5"
|
||||
LIBIMOBILEDEVICE_GLUE_VER: "1.3.2"
|
||||
|
||||
@@ -16,7 +16,7 @@ on:
|
||||
default: "dev"
|
||||
env:
|
||||
QT_VERSION: "6.7.2"
|
||||
GO_VERSION: "1.23.0"
|
||||
GO_VERSION: "1.23.4"
|
||||
LIBPLIST_VER: "2.7.0"
|
||||
LIBTATSU_VER: "1.0.5"
|
||||
LIBIMOBILEDEVICE_GLUE_VER: "1.3.2"
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: "^1.23.0"
|
||||
go-version: "^${{ env.GO_VERSION }}"
|
||||
|
||||
- name: Install macOS dependencies
|
||||
run: |
|
||||
|
||||
@@ -15,8 +15,8 @@ on:
|
||||
type: string
|
||||
default: "dev"
|
||||
env:
|
||||
QT_VERSION: "6.8.0"
|
||||
GO_VERSION: "1.23.0"
|
||||
QT_VERSION: "6.8.3"
|
||||
GO_VERSION: "1.23.4"
|
||||
LIBPLIST_VER: "2.7.0"
|
||||
LIBTATSU_VER: "1.0.5"
|
||||
LIBIMOBILEDEVICE_GLUE_VER: "1.3.2"
|
||||
@@ -26,7 +26,7 @@ env:
|
||||
|
||||
jobs:
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
runs-on: windows-2022
|
||||
defaults:
|
||||
run:
|
||||
shell: msys2 {0}
|
||||
@@ -43,32 +43,67 @@ jobs:
|
||||
msystem: mingw64
|
||||
release: false
|
||||
update: false
|
||||
install: >-
|
||||
coreutils
|
||||
base-devel
|
||||
git
|
||||
make
|
||||
libtool
|
||||
autoconf
|
||||
automake-wrapper
|
||||
p7zip
|
||||
mingw-w64-x86_64-gcc
|
||||
mingw-w64-x86_64-cmake
|
||||
mingw-w64-x86_64-pugixml
|
||||
mingw-w64-x86_64-libusb
|
||||
mingw-w64-x86_64-qrencode
|
||||
mingw-w64-x86_64-curl
|
||||
mingw-w64-x86_64-openssl
|
||||
mingw-w64-x86_64-libzip
|
||||
mingw-w64-x86_64-go
|
||||
mingw-w64-x86_64-gstreamer
|
||||
mingw-w64-x86_64-gst-plugins-base
|
||||
mingw-w64-x86_64-gst-plugins-good
|
||||
mingw-w64-x86_64-gst-plugins-bad
|
||||
mingw-w64-x86_64-gst-plugins-ugly
|
||||
mingw-w64-x86_64-gst-libav
|
||||
mingw-w64-x86_64-libheif
|
||||
mingw-w64-x86_64-libarchive
|
||||
|
||||
# FIXME: use ./util/get-msys2-archive.go to download the archive db
|
||||
# for now, since we install go from pacman, we better do it this way
|
||||
- name: Use msys2 archive
|
||||
shell: pwsh
|
||||
run: |
|
||||
# Base URL for the 2025-06-22 MSYS2 archive release
|
||||
$baseUrl = "https://github.com/msys2/msys2-archive/releases/download/2025-06-22"
|
||||
|
||||
$databases = @(
|
||||
"clang64",
|
||||
"clangarm64",
|
||||
"mingw32",
|
||||
"mingw64",
|
||||
"msys",
|
||||
"ucrt64"
|
||||
)
|
||||
|
||||
$targetDir = "C:\msys64\var\lib\pacman\sync"
|
||||
|
||||
foreach ($db in $databases) {
|
||||
$dbUrl = "$baseUrl/$db.db"
|
||||
$sigUrl = "$baseUrl/$db.db.sig"
|
||||
|
||||
$dbFile = Join-Path $targetDir "$db.db"
|
||||
$sigFile = Join-Path $targetDir "$db.db.sig"
|
||||
|
||||
Write-Host "Downloading $db.db ..."
|
||||
Invoke-WebRequest -Uri $dbUrl -OutFile $dbFile
|
||||
|
||||
Write-Host "Downloading $db.db.sig ..."
|
||||
Invoke-WebRequest -Uri $sigUrl -OutFile $sigFile
|
||||
}
|
||||
|
||||
- name: Install deps using pacman
|
||||
run: |
|
||||
pacman -S --needed --noconfirm \
|
||||
coreutils \
|
||||
base-devel \
|
||||
git \
|
||||
make \
|
||||
libtool \
|
||||
autoconf \
|
||||
automake-wrapper \
|
||||
p7zip \
|
||||
mingw-w64-x86_64-gcc \
|
||||
mingw-w64-x86_64-cmake \
|
||||
mingw-w64-x86_64-pugixml \
|
||||
mingw-w64-x86_64-libusb \
|
||||
mingw-w64-x86_64-qrencode \
|
||||
mingw-w64-x86_64-curl \
|
||||
mingw-w64-x86_64-openssl \
|
||||
mingw-w64-x86_64-libzip \
|
||||
mingw-w64-x86_64-go \
|
||||
mingw-w64-x86_64-gstreamer \
|
||||
mingw-w64-x86_64-gst-plugins-base \
|
||||
mingw-w64-x86_64-gst-plugins-good \
|
||||
mingw-w64-x86_64-gst-plugins-bad \
|
||||
mingw-w64-x86_64-gst-plugins-ugly \
|
||||
mingw-w64-x86_64-gst-libav \
|
||||
mingw-w64-x86_64-libheif
|
||||
|
||||
- uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user