2 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
3 changed files with 21 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ on:
env: env:
PACKAGE_AND_BREW: ${{ secrets.PACKAGE_AND_BREW }} PACKAGE_AND_BREW: ${{ secrets.PACKAGE_AND_BREW }}
VERSION: ${{ gitea.ref_name }}
jobs: jobs:
build-arch: build-arch:
@@ -17,7 +18,7 @@ jobs:
repository: "tesses50/tesses-tap.git" repository: "tesses50/tesses-tap.git"
token: ${{ env.PACKAGE_AND_BREW }} token: ${{ env.PACKAGE_AND_BREW }}
- run: | - run: |
echo "THIS IS COOL" > file bash ../edit-formula.sh
git config user.name "Tesses Gitea Bot" git config user.name "Tesses Gitea Bot"
git config user.email "noreply@tesses.net" git config user.email "noreply@tesses.net"
git add . git add .

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) int main(int argc, char** argv)
{ {
printf("%s",VERSE); printf("%s",VERSE);
printf("GOD's NOT DEAD\n");
return 0; return 0;
} }