7 Commits

Author SHA1 Message Date
49c7def1a0 Fix
Some checks failed
Build and Deploy on Tag / build-arch (push) Failing after 2s
2026-04-20 04:30:45 -05:00
153874fa8a Fix
Some checks failed
Build and Deploy on Tag / build-arch (push) Failing after 3s
2026-04-20 04:28:45 -05:00
9390084abe Fix
Some checks failed
Build and Deploy on Tag / build-arch (push) Has been cancelled
2026-04-20 02:12:15 -05:00
279a765d01 Fix
Some checks failed
Build and Deploy on Tag / build-arch (push) Has been cancelled
2026-04-20 02:10:01 -05:00
2b52688e95 Fix
Some checks failed
Build and Deploy on Tag / build-arch (push) Failing after 7s
2026-04-20 02:08:54 -05:00
fca8d5878a Fix
Some checks failed
Build and Deploy on Tag / build-arch (push) Failing after 0s
2026-04-20 02:06:57 -05:00
d832689911 Add inspiring message (thats an understatement) 2026-04-19 21:58:02 -05:00
4 changed files with 47 additions and 0 deletions

26
.gitea/workflows/tag.yaml Normal file
View File

@@ -0,0 +1,26 @@
name: Build and Deploy on Tag
on:
push:
tags:
- "v*"
env:
PACKAGE_AND_BREW: ${{ secrets.PACKAGE_AND_BREW }}
VERSION: ${{ gitea.ref_name }}
jobs:
build-arch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: "master"
repository: "tesses50/tesses-tap.git"
token: ${{ env.PACKAGE_AND_BREW }}
- run: |
bash ../edit-formula.sh
git config user.name "Tesses Gitea Bot"
git config user.email "noreply@tesses.net"
git add .
git commit -m "generated"
git push

View File

@@ -3,3 +3,5 @@ cmake_minimum_required(VERSION 3.16)
project(my-first-brew)
add_executable(my-first-brew main.c)
install(TARGETS my-first-brew DESTINATION bin)

18
edit-formula.sh Normal file
View File

@@ -0,0 +1,18 @@
export HASH=`curl https://git.tesses.org/tesses50/my-first-brew/archive/$VERSION.tar.gz 2> /dev/null | shasum -a 256 | awk '{print $1}'`
echo "class MyFirstBrew < Formula" > "Formula/my-first-brew.rb"
echo " desc \"\"" >> "Formula/my-first-brew.rb"
echo " homepage \"\"" >> "Formula/my-first-brew.rb"
echo " url \"https://git.tesses.org/tesses50/my-first-brew/archive/$VERSION.tar.gz\"" >> "Formula/my-first-brew.rb"
echo " sha256 \"$HASH\"" >> "Formula/my-first-brew.rb"
echo " license \"MIT\"" >> "Formula/my-first-brew.rb"
echo " depends_on \"cmake\" => :build" >> "Formula/my-first-brew.rb"
echo " def install" >> "Formula/my-first-brew.rb"
echo " system \"cmake\", \"-S\", \".\", \"-B\", \"build\", *std_cmake_args" >> "Formula/my-first-brew.rb"
echo " system \"cmake\", \"--build\", \"build\"" >> "Formula/my-first-brew.rb"
echo " system \"cmake\", \"--install\", \"build\"" >> "Formula/my-first-brew.rb"
echo " end" >> "Formula/my-first-brew.rb"
echo " test do" >> "Formula/my-first-brew.rb"
echo " system \"true\"" >> "Formula/my-first-brew.rb"
echo " end" >> "Formula/my-first-brew.rb"
echo "end" >> "Formula/my-first-brew.rb"

1
main.c
View File

@@ -5,5 +5,6 @@ const char* VERSE = "John 3:16 says: For God so loved the world that he gave his
int main(int argc, char** argv)
{
printf("%s",VERSE);
printf("GOD's NOT DEAD\n");
return 0;
}