Fix PKGBUILD.ci for CI workflow, added manual action start
This commit is contained in:
parent
ddf8f3f9e0
commit
04f62c7725
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user