mirror of
https://github.com/ARMSX2/ARMSX1.git
synced 2026-08-24 16:53:35 -07:00
Fix CI matrices and add Vita workflow
This commit is contained in:
@@ -118,6 +118,11 @@ configure_target
|
||||
|
||||
toolchain_dir="$(download_toolchain "$toolchain_name")"
|
||||
apk_static="$(download_apk_static)"
|
||||
python3_bin="$(command -v python3 || true)"
|
||||
if [ -z "$python3_bin" ]; then
|
||||
echo "python3 is required for the musl fsui build." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sysroot_dir="$sysroot_root/$target"
|
||||
repo_file="$sysroot_dir/etc/apk/repositories"
|
||||
@@ -178,6 +183,8 @@ cmake -S "$repo_root/third_party/fsui-lib" -B "$fsui_build_dir" \
|
||||
-DFSUI_BUILD_SAMPLES=OFF \
|
||||
-DFSUI_PLATFORM_BACKEND=SDL2 \
|
||||
-DFSUI_USE_SYSTEM_SDL2=ON \
|
||||
-DPython_EXECUTABLE="$python3_bin" \
|
||||
-DPython3_EXECUTABLE="$python3_bin" \
|
||||
-DCMAKE_PREFIX_PATH="$sysroot_dir/usr" \
|
||||
-DSDL2_DIR="$sdl2_config_dir"
|
||||
cmake --build "$fsui_build_dir" -j"$build_jobs"
|
||||
|
||||
@@ -5,7 +5,11 @@ set -euo pipefail
|
||||
target_arch="${1:-}"
|
||||
|
||||
case "$target_arch" in
|
||||
x32|i386)
|
||||
source_mode="x32"
|
||||
;;
|
||||
arm64|armhf)
|
||||
source_mode="ports"
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
@@ -22,16 +26,28 @@ for source in /etc/apt/sources.list /etc/apt/sources.list.d/*; do
|
||||
fi
|
||||
done
|
||||
|
||||
cat > "/etc/apt/sources.list.d/armsx-ubuntu-amd64.list" <<'EOF'
|
||||
case "$source_mode" in
|
||||
x32)
|
||||
cat > "/etc/apt/sources.list.d/armsx-ubuntu-x32.list" <<'EOF'
|
||||
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu noble main restricted universe multiverse
|
||||
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu noble-updates main restricted universe multiverse
|
||||
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu noble-backports main restricted universe multiverse
|
||||
deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu noble-security main restricted universe multiverse
|
||||
EOF
|
||||
;;
|
||||
ports)
|
||||
cat > "/etc/apt/sources.list.d/armsx-ubuntu-amd64.list" <<'EOF'
|
||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu noble main restricted universe multiverse
|
||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu noble-updates main restricted universe multiverse
|
||||
deb [arch=amd64] http://archive.ubuntu.com/ubuntu noble-backports main restricted universe multiverse
|
||||
deb [arch=amd64] http://security.ubuntu.com/ubuntu noble-security main restricted universe multiverse
|
||||
EOF
|
||||
|
||||
cat > "/etc/apt/sources.list.d/armsx-ubuntu-${target_arch}.list" <<EOF
|
||||
cat > "/etc/apt/sources.list.d/armsx-ubuntu-${target_arch}.list" <<EOF
|
||||
deb [arch=${target_arch}] http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse
|
||||
deb [arch=${target_arch}] http://ports.ubuntu.com/ubuntu-ports noble-updates main restricted universe multiverse
|
||||
deb [arch=${target_arch}] http://ports.ubuntu.com/ubuntu-ports noble-backports main restricted universe multiverse
|
||||
deb [arch=${target_arch}] http://ports.ubuntu.com/ubuntu-ports noble-security main restricted universe multiverse
|
||||
EOF
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user