更新 .gitea/workflows/update-packages.yaml
All checks were successful
Build Arch Packages and Update Repo / build (push) Successful in 3m8s

This commit is contained in:
zj
2025-11-28 01:37:17 +08:00
parent f4a248a08b
commit e0f30d12f0

View File

@@ -3,11 +3,11 @@ name: Build Arch Packages and Update Repo
on:
push:
branches:
- main # 当有代码推送到 main 分支时触发此工作流
- main
jobs:
build:
runs-on: arch # 指定使用带有 "archlinux:host" 标签的 runner
runs-on: arch
steps:
- name: Checkout repository
@@ -29,10 +29,9 @@ jobs:
# makepkg -sric:
# -s: 同步依赖
# -r: 移除构建依赖
# -i: 安装包(如果需要,但这里我们只是构建)
# -c: 清理构建目录
# --noconfirm: 自动确认
makepkg -s --noconfirm || { echo "::error::Failed to build package in $pkgdir"; exit 1; }
makepkg -sc --noconfirm || { echo "::error::Failed to build package in $pkgdir"; exit 1; }
# 将生成的包移动到 x86_64 目录
mv *.pkg.tar.zst ../x86_64/ || true
cd - # 返回上级目录