Initial commit
Some checks failed
Wake Runner / build (push) Successful in 9s
Build and Push / build (push) Failing after 3s

This commit is contained in:
Sebastiaan de Schaetzen 2025-04-23 10:43:45 +02:00
commit 95f856955a
4 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,24 @@
name: Build and Push
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-amd64
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build package
run: |
makepkg -s -
- name: Push to repository
run: |
makepkg --packagelist | while read -r file; do
curl --user ${{ secrets.USERNAME }}:${{ secrets.PASSWORD }} \
--upload-file $FILE \
https://gitea.seeseepuff.be/api/packages/archlinux/arch/personal
done

13
.gitea/workflows/wake.yml Normal file
View File

@ -0,0 +1,13 @@
name: Wake Runner
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Wakeup Runner
run: |
curl https://idlesleep.wolproxy.seeseepuff.be/status

19
PKGBUILD Normal file
View File

@ -0,0 +1,19 @@
pkgname=helloworld
pkgver=1
pkgrel=1
pkgdesc="Prints hello world"
arch=('any')
url="https://gitea.seeseepuff.be/archlinux/helloworld"
license=('GPL')
source=(helloworld.c)
md5sums=('be272e4d8286b99885f0540bc3345d5f')
build() {
gcc -o helloworld helloworld.c -Wall -Wextra -Werror -pedantic
}
package() {
install -D helloworld "$pkgdir/usr/bin/helloworld"
}

5
helloworld.c Normal file
View File

@ -0,0 +1,5 @@
#include <stdio.h>
int main() {
puts("Hello, world!");
}