Fix PKGBUILD.ci for CI workflow, added manual action start
Some checks failed
Debian build / build-ubuntu (push) Has been cancelled
Archlinux build / build-arch (push) Successful in 2m52s

This commit is contained in:
Alexey Khromov 2025-04-13 22:26:47 +03:00
parent ddf8f3f9e0
commit 04f62c7725
3 changed files with 11 additions and 6 deletions

View File

@ -3,14 +3,14 @@ run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }} 🚀
on: on:
- push - push
- workflow_dispatch - workflow_dispatch
if: ${{ github.ref }} == 'refs/head/master'
jobs: jobs:
build-arch: build-arch:
runs-on: arch-latest runs-on: arch-latest
if: ${{ github.ref }} == 'refs/head/master'
branches: branches:
- 'master' - 'master'
- 'zx'
steps: steps:
- name: Checking environment - name: Checking environment
continue-on-error: true continue-on-error: true

View File

@ -1,6 +1,8 @@
name: Debian build name: Debian build
run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }} 🚀 run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }} 🚀
on: [push] on:
- push
- workflow_dispatch
jobs: jobs:
build-ubuntu: build-ubuntu:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -6,7 +6,7 @@ arch=('i686' 'x86_64' 'aarch64')
url="https://prj.zxalexis.ru/gitea/zx/bforce/" url="https://prj.zxalexis.ru/gitea/zx/bforce/"
license=('GPL2') license=('GPL2')
source=( source=(
"${pkgname}::git+https://prj.zxalexis.ru/gitea/${GITHUB_REF_NAME}/bforce.git" "${pkgname}::git+https://prj.zxalexis.ru/gitea/zx/bforce.git"
) )
makedepends=('git' 'gcc' 'make' 'glibc') makedepends=('git' 'gcc' 'make' 'glibc')
provides=('bforce') provides=('bforce')
@ -25,7 +25,10 @@ prepare() {
pkgver() { pkgver() {
cd "$pkgname" cd "$pkgname"
if [ "${GITHUB_REF_TYPE}" = "tags" ]; then
printf "r%s.%s.%s" "$(git rev-list --count ${GITHUB_SHA})" "$(git rev-parse --short ${GITHUB_SHA})" "${GITHUB_REF_NAME}" printf "r%s.%s.%s" "$(git rev-list --count ${GITHUB_SHA})" "$(git rev-parse --short ${GITHUB_SHA})" "${GITHUB_REF_NAME}"
else
printf "v%s" "${GITHUB_REF_NAME}"
} }
package() { package() {