v++, also actions
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m22s Details

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2023-10-25 22:53:49 +00:00
parent 3eb9cc5cc3
commit d7847658e8
5 changed files with 108 additions and 15 deletions

View File

@ -0,0 +1,33 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: autobuilder
container:
volumes:
- /home/builder/public/spark-extra/import:/import
steps:
- name: Show job info
run: |
echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v3
- name: Link the workdir into /buildroot # for script compatability with the old builder.
run: |
ln -vfs ${{ gitea.workspace }} /buildroot
- name: Build the package
run: |
cd ${{ gitea.workspace }}
/build -s --noconfirm
# - name: Upload artifacts
# uses: actions/upload-artifact@v3
# with:
# name: package
# path: ./*.pkg.tar.zst
- name: Put the packages into the import dir
run: cp -v ./*.pkg.tar.zst /import
- run: echo "This job's status is ${{ job.status }}."

View File

@ -1,34 +1,46 @@
# vim: ft=sh
# % Trigger: 32489271948127389 %
# Author: Kevin MacMartin <prurigro@gmail.com>
# Imported for use on https://code.fleshless.org
pkgname=ircd-ratbox
pkgver=3.0.10
pkgrel=3
pkgdesc='An advanced, stable and fast ircd'
url='http://www.ratbox.org'
license=( 'GPL' )
depends=( 'openssl' 'sqlite' 'libtool' )
arch=( 'i686' 'x86_64' 'arm' 'armv6h' 'armv7h' )
backup=( "etc/$pkgname/ircd.motd" )
options=( '!makeflags' )
license=('GPL')
depends=('openssl' 'sqlite' 'libtool')
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
backup=("etc/$pkgname/ircd.motd")
install="$pkgname.install"
source=( "http://www.ratbox.org/download/$pkgname-$pkgver.tar.bz2" )
source=(
"http://www.ratbox.org/download/$pkgname-$pkgver.tar.bz2"
"$pkgname.service"
"$pkgname.conf"
)
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr/share/"$pkgname" \
--with-confdir=/etc/"$pkgname" \
--with-logdir=/var/log/"$pkgname" \
./configure --prefix="/usr/share/$pkgname" \
--with-confdir="/etc/$pkgname" \
--with-logdir="/var/log/$pkgname" \
--bindir=/usr/bin
make
cd contrib
make
}
package() {
mkdir -m755 "$pkgdir/etc"
cd "$pkgname-$pkgver"
install -d "$pkgdir/etc/$pkgname"
install -Dm644 $pkgname.service "$pkgdir/usr/lib/systemd/system/$pkgname.service"
install -Dm644 $pkgname.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
install -d "$pkgdir/usr/share/$pkgname/modules/contrib/"
cp contrib/.libs/*.so "$pkgdir/usr/share/$pkgname/modules/contrib/"
}
sha1sums=('fa1645495c765cf921726b65172ff5eceeea008a')
sha1sums=('fa1645495c765cf921726b65172ff5eceeea008a'
'84fb85e7c8b858e8e11be11e8abe60e3cada3c80'
'3dd5270ced5243adf4dde43ef11c3a0a68001240')

1
ircd-ratbox.conf Normal file
View File

@ -0,0 +1 @@
d /var/log/ircd-ratbox 0770 ircd ircd -

33
ircd-ratbox.install Normal file
View File

@ -0,0 +1,33 @@
post_upgrade() {
systemd-tmpfiles --create ircd-ratbox.conf
cat << EOF
Before starting the ircd, reload system modules by running:
systemctl daemon-reload
If you haven't previously done so, copy /etc/ircd-ratbox/example.conf
to /etc/ircd-ratbox/ircd.conf and configure it to your needs carefully.
Once things are configured, you can start the ircd by running:
systemctl start ircd-ratbox
You can also have the ircd start automatically at boot by running:
systemctl enable ircd-ratbox
EOF
}
post_install() {
[[ ! `grep ircd /etc/passwd` ]] && useradd -r -U -s /bin/false -d / ircd && echo "Created 'ircd' user and group"
chown -R ircd.ircd /etc/ircd-ratbox
post_upgrade
}
post_remove() {
[[ `grep ircd /etc/passwd` ]] && userdel ircd && echo "Removed 'ircd' user and group"
return 0
}

14
ircd-ratbox.service Normal file
View File

@ -0,0 +1,14 @@
[Unit]
Description=Ratbox IRC Daemon
Wants=network.target
After=network.target
[Service]
User=ircd
Type=forking
GuessMainPID=yes
ExecStart=/usr/bin/ircd
Restart=on-failure
[Install]
WantedBy=multi-user.target