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'