Remove unused workflow and related files.

We don't need these anymore.
This commit is contained in:
rozari0 2022-12-03 02:37:15 +06:00
parent 7ad0a9ad87
commit 950937f6e9
3 changed files with 5 additions and 52 deletions

9
.github/checkrun.py vendored
View File

@ -1,15 +1,12 @@
from json import load
from os import system
f = open('commit.json')
data = load(f)
f.close()
data = data['commit']['message']
with open("commit.json", "r") as f:
data = load(f)["commit"]["message"]
if "\n\n" in data:
if data.split("\n\n", 1)[-1].split()[0] == "[SILENT]":
system('killall -9 python')
system("killall -9 python")
else:
print("Silence not found")
else:

12
.github/compiler.sh vendored
View File

@ -1,12 +0,0 @@
#!/bin/bash
cd ~
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y make git zlib1g-dev libssl-dev gperf cmake clang-10 libc++-dev libc++abi-dev
git clone --recursive https://github.com/tdlib/telegram-bot-api.git
rm -rf telegram-bot-api/build
mkdir -p telegram-bot-api/build
cd telegram-bot-api/build
CXXFLAGS="-stdlib=libc++" CC=/usr/bin/clang-10 CXX=/usr/bin/clang++-10 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=.. ..
cmake --build . --target install

View File

@ -1,32 +0,0 @@
name: Bot API Compiler
on:
workflow_dispatch:
jobs:
debug-builds:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare for Compilation
run: |
git config --global user.name "alefvanoon"
git config --global user.email "53198048+alefvanoon@users.noreply.github.com"
git config --global credential.helper store
echo "https://alefvanoon:${{ secrets.GH_TOKEN }}@github.com" > ~/.git-credentials
- name: Run Script
run: |
chmod 755 .github/compiler.sh
.github/compiler.sh
- name: Upload to Archive
run: |
git clone https://github.com/LibreTubeAlpha/Archive bot-api
rm -rf bot-api/exec
mv ~/telegram-bot-api/bin/telegram-bot-api bot-api/exec
cd bot-api
git add -f *
git commit -m "WORKFLOW: BUILD BINARIES"
git push -u