From 950937f6e924b4e28b23ea7f2287b20daae6c318 Mon Sep 17 00:00:00 2001 From: rozari0 Date: Sat, 3 Dec 2022 02:37:15 +0600 Subject: [PATCH] Remove unused workflow and related files. We don't need these anymore. --- .github/checkrun.py | 13 +++++------- .github/compiler.sh | 12 ----------- .github/workflows/api-compiler.yml | 32 ------------------------------ 3 files changed, 5 insertions(+), 52 deletions(-) delete mode 100644 .github/compiler.sh delete mode 100644 .github/workflows/api-compiler.yml diff --git a/.github/checkrun.py b/.github/checkrun.py index c8c0f1a2e..d3ff65651 100644 --- a/.github/checkrun.py +++ b/.github/checkrun.py @@ -1,16 +1,13 @@ 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') + if data.split("\n\n", 1)[-1].split()[0] == "[SILENT]": + system("killall -9 python") else: print("Silence not found") else: - print("Empty Description") \ No newline at end of file + print("Empty Description") diff --git a/.github/compiler.sh b/.github/compiler.sh deleted file mode 100644 index 7a65710f8..000000000 --- a/.github/compiler.sh +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.github/workflows/api-compiler.yml b/.github/workflows/api-compiler.yml deleted file mode 100644 index a16c76d28..000000000 --- a/.github/workflows/api-compiler.yml +++ /dev/null @@ -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