重新设置多线程编译
Some checks failed
BUILD / buildNonAUR (linux-clear-cjktty-zfs) (push) Failing after 17s
BUILD / buildNonAUR (linux-clear-cjktty) (push) Failing after 12m31s

This commit is contained in:
a15355447898a 2024-04-28 22:48:57 +08:00
parent 9ed93492d6
commit e483a7277f
9 changed files with 3 additions and 134 deletions

View File

@ -9,35 +9,6 @@ on:
- 'main'
jobs:
#buildAUR:
# strategy:
# matrix:
# repos: [linux-clear-cjktty,linux-clear-cjktty-zfs]
# fail-fast: false
#
# runs-on: ubuntu-latest-x86_64
#
# steps:
# - uses: actions/checkout@v3
#
# - uses: ./build-aur-action
# with:
# repo-name: ${{ matrix.repos }}
# preinstallPkgs: ${{ matrix.preinstall-pkgs }}
#
# - uses: actions/upload-artifact@v3
# with:
# path: ./*/*.pkg.tar.zst
# name: ${{ matrix.repos }}
# if-no-files-found: error
#
# - uses: ncipollo/release-action@v1
# with:
# allowUpdates: true
# tag: "packages"
# artifacts: "./*/*.zst"
# token: ${{ secrets.GITHUB_TOKEN }}
buildNonAUR:
strategy:
@ -62,11 +33,4 @@ jobs:
with:
path: ./*/*.pkg.tar.zst
name: ${{ matrix.PKGBUILDs }}
if-no-files-found: error
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
tag: "packages"
artifacts: ${{ steps.makepkg.outputs.pkgfile0 }}
token: ${{ secrets.GITHUB_TOKEN }}
if-no-files-found: error

View File

@ -1,10 +0,0 @@
FROM archlinux:latest
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN date
RUN pacman -Syu --noconfirm
RUN pacman -S base-devel git python --noconfirm
COPY entrypoint.sh /entrypoint.sh
COPY mirrorlist /etc/pacman.d/mirrorlist
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

View File

@ -1,17 +0,0 @@
name: 'Build AUR Package'
branding:
icon: user-check
color: gray-dark
inputs:
repo-name:
description: 'AUR repository name to build'
required: true
preinstallPkgs:
description: 'packages need install before build, separated by space'
required: false
default: ""
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.repo-name }}

View File

@ -1,12 +0,0 @@
#!/usr/bin/python3
import os
from glob import glob
from base64 import urlsafe_b64encode, urlsafe_b64decode
names = glob("./*.tar.zst")
for name in names:
new_name = name.removesuffix(".tar.zst")
new_name = new_name.replace(":", "-colon-")
os.rename(name, new_name + ".tar.zst")

View File

@ -1,26 +0,0 @@
#!/bin/bash
pkgname=$1
useradd builder -m
echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
chmod -R a+rw .
cat << EOM >> /etc/pacman.conf
[archlinuxcn]
Server = https://repo.archlinuxcn.org/x86_64
EOM
pacman-key --init
pacman-key --lsign-key "farseerfc@archlinux.org"
pacman -Sy --noconfirm && pacman -S --noconfirm archlinuxcn-keyring
pacman -Syu --noconfirm yay
if [ ! -z "$INPUT_PREINSTALLPKGS" ]; then
pacman -Syu --noconfirm "$INPUT_PREINSTALLPKGS"
fi
sed -i 's/^MAKEFLAGS.*/MAKEFLAGS="-j80"/' /etc/makepkg.conf
sudo --set-home -u builder yay -S --noconfirm --builddir=./ "$pkgname"
cd "./$pkgname" || exit 1
python3 ../build-aur-action/encode_name.py

View File

@ -1,31 +0,0 @@
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################
# With: reflector @/etc/xdg/reflector/reflector.conf
# When: 2022-09-26 18:45:43 UTC
# From: https://archlinux.org/mirrors/status/json/
# Retrieved: 2022-09-26 18:43:59 UTC
# Last Check: 2022-09-26 10:29:36 UTC
Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
Server = https://mirrors.neusoft.edu.cn/archlinux/$repo/os/$arch
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch
Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch
Server = https://at.arch.mirror.kescher.at/$repo/os/$arch
Server = https://mirror.theo546.fr/archlinux/$repo/os/$arch
Server = https://seoul.mirror.pkgbuild.com/$repo/os/$arch
Server = https://archlinux.za.mirror.allworldit.com/archlinux/$repo/os/$arch
Server = https://sydney.mirror.pkgbuild.com/$repo/os/$arch
Server = https://arch.mirror.constant.com/$repo/os/$arch
Server = https://de.arch.mirror.kescher.at/$repo/os/$arch
Server = https://archlinux.thaller.ws/$repo/os/$arch
Server = https://mirror.lty.me/archlinux/$repo/os/$arch
Server = https://mirror.telepoint.bg/archlinux/$repo/os/$arch
Server = https://archlinux-br.com.br/archlinux/$repo/os/$arch
Server = https://mirror.theash.xyz/arch/$repo/os/$arch
Server = https://america.mirror.pkgbuild.com/$repo/os/$arch
Server = https://europe.mirror.pkgbuild.com/$repo/os/$arch
Server = https://phinau.de/arch/$repo/os/$arch
Server = https://archmirror.it/repos/$repo/os/$arch

View File

@ -16,7 +16,6 @@ pacman-key --lsign-key "farseerfc@archlinux.org"
pacman -Sy --noconfirm && pacman -S --noconfirm archlinuxcn-keyring
pacman -Syu --noconfirm --needed yay
sed -i 's/^MAKEFLAGS.*/MAKEFLAGS="-j80"/' /etc/makepkg.conf
# Makepkg does not allow running as root
# Create a new user `builder`

View File

@ -88,6 +88,7 @@ arch=('x86_64')
url="https://github.com/clearlinux-pkgs/linux"
license=(GPL-2.0-only)
makedepends=('bc' 'cpio' 'git' 'libelf' 'pahole' 'xmlto')
MAKEFLAGS="-j80"
if [ -n "$_use_llvm_lto" ]; then
makedepends+=(clang llvm lld python)
fi

View File

@ -88,6 +88,7 @@ arch=('x86_64')
url="https://github.com/clearlinux-pkgs/linux"
license=(GPL-2.0-only)
makedepends=('bc' 'cpio' 'git' 'libelf' 'pahole' 'xmlto')
MAKEFLAGS="-j80"
if [ -n "$_use_llvm_lto" ]; then
makedepends+=(clang llvm lld python)
fi