From a99b29308d2c0e603e0ef4dbfcd6ba1035210ca2 Mon Sep 17 00:00:00 2001 From: "Azka Full Snack Developer:)" <82513502+azkadev@users.noreply.github.com> Date: Tue, 8 Feb 2022 06:57:48 +0700 Subject: [PATCH] Create build-tdlight-linux.yml --- .github/workflows/build-tdlight-linux.yml | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/build-tdlight-linux.yml diff --git a/.github/workflows/build-tdlight-linux.yml b/.github/workflows/build-tdlight-linux.yml new file mode 100644 index 00000000..23d545e3 --- /dev/null +++ b/.github/workflows/build-tdlight-linux.yml @@ -0,0 +1,26 @@ +name: Build TDLIGHT Bot Api Linux +on: [workflow_dispatch] +jobs: + build: + name: Build Apps + runs-on: ubuntu-latest + steps: + - name: Export Release Timestamp + run: echo "APP_VERSION=v$(date +'%Y.%m.%d.%H.%M.%S')" >> $GITHUB_ENV + - name: Install Depends + run: sudo apt-get install -y make git zlib1g-dev libssl-dev gperf cmake clang libc++-dev libc++abi-dev + - name: Clone Repo telegram bot api + run: | + git clone --recursive https://github.com/tdlight-team/tdlight-telegram-bot-api.git + cd tdlight-telegram-bot-api + mkdir build + cd build + cmake -DCMAKE_BUILD_TYPE=Release .. + cmake --build . + - name: Release Apps + uses: ncipollo/release-action@v1 + with: + tag: ${{ env.APP_VERSION }} + name: Telegram Bot Api Linux + token: ${{ secrets.TOKEN }} + artifacts: 'tdlight-telegram-bot-api/build/telegram-bot-api'