| branches: |
| 6 | - dev |
| 7 | paths-ignore: |
| 8 | - '**.md' |
| 9 | - '.github/**' |
| 10 | - '!.github/workflows/debug.yml' |
| 11 | pull_request: |
| 12 | branches: |
| 13 | - dev |
| 14 | workflow_dispatch: |
| 15 | inputs: |
| 16 | artifacts: |
| 17 | description: 'y, if need artifacts' |
| 18 | required: false |
| 19 |
| 20 | jobs: |
| 21 | ffmpeg: |
| 22 | name: Native Build (FFmpeg) |
| 23 | runs-on: ubuntu-latest |
| 24 | steps: |
| 25 | - name: Checkout |
| 26 | uses: actions/checkout@v2 |
| 27 | - name: Fetch Status |
| 28 | run: | |
| 29 | git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status |
| 30 | git submodule status TMessagesProj/jni/libvpx > libvpx_status |
| 31 | - name: FFmpeg Cache |
| 32 | id: cache |
| 33 | uses: actions/cache@v2 |
| 34 | with: |
| 35 | path: | |
| 36 | TMessagesProj/jni/ffmpeg/build |
| 37 | TMessagesProj/jni/libvpx/build |
| 38 | key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh', 'TMessagesProj/jni/patches/ffmpeg/*') }} |
| 39 | - name: Setup Android SDK Tools |
| 40 | uses: android-actions/setup-android@v2 |
| 41 | if: steps.cache.outputs.cache-hit != 'true' |
| 42 | - name: Install NDK |
| 43 | if: steps.cache.outputs.cache-hit != 'true' |
| 44 | run: | |
| 45 | echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.4.7075529" --sdk_root=${ANDROID_SDK_ROOT} &> /dev/null |
| 46 | echo "sdk.dir=${ANDROID_HOME}" > local.properties |
| 47 | echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties |
| 48 | - name: Native Build |
| 49 | if: steps.cache.outputs.cache-hit != 'true' |
| 50 | run: | |
| 51 | sudo apt-get install yasm -y |
| 52 | ./run init libs libvpx |
| 53 | ./run init libs ffmpeg |
| 54 | boringssl: |
| 55 | name: Native Build (BoringSSL) |
| 56 | runs-on: ubuntu-latest |
| 57 | steps: |
| 58 | - name: Checkout |
| 59 | uses: actions/checkout@v2 |
| 60 | - name: Fetch Status |
| 61 | run: git submodule status TMessagesProj/jni/boringssl > boringssl_status |
| 62 | - name: BoringSSL Cache |
| 63 | id: cache |
| 64 | uses: actions/cache@v2 |
| 65 | with: |
| 66 | path: | |
| 67 | TMessagesProj/jni/boringssl/build |
| 68 | key: ${{ hashFiles('boringssl_status') }} |
| 69 | - name: Setup Android SDK Tools |
| 70 | uses: android-actions/setup-android@v2 |
| 71 | if: steps.cache.outputs.cache-hit != 'true' |
| 72 | - name: Install NDK |
| 73 | if: steps.cache.outputs.cache-hit != 'true' |
| 74 | run: | |
| 75 | echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.4.7075529" --sdk_root=${ANDROID_SDK_ROOT} &> /dev/null |
| 76 | echo "sdk.dir=${ANDROID_HOME}" > local.properties |
| 77 | echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties |
| 78 | - name: Native Build |
| 79 | if: steps.cache.outputs.cache-hit != 'true' |
| 80 | run: | |
| 81 | ./run init action boringssl |
| 82 | ./run init libs boringssl |
| 83 | native: |
| 84 | name: Native Build (Telegram) |
| 85 | runs-on: ubuntu-latest |
| 86 | needs: |
| 87 | - ffmpeg |
| 88 | - boringssl |
| 89 | strategy: |
| 90 | matrix: |
| 91 | flavor: |
| 92 | - armeabi-v7a |
| 93 | - arm64-v8a |
| 94 | - x86 |
| 95 | - x86_64 |
| 96 | steps: |
| 97 | - name: Checkout |
| 98 | uses: actions/checkout@v2 |
| 99 | - name: Fetch Status |
| 100 | run: | |
| 101 | git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status |
| 102 | git submodule status TMessagesProj/jni/libvpx > libvpx_status |
| 103 | git submodule status TMessagesProj/jni/boringssl > boringssl_status |
| 104 | - name: Native Cache |
| 105 | id: cache |
| 106 | uses: actions/cache@v2 |
| 107 | with: |
| 108 | path: | |
| 109 | TMessagesProj/src/main/libs |
| 110 | key: ${{ hashFiles('TMessagesProj/jni/**', 'ffmpeg_status', 'boringssl_status') }}-${{ matrix.flavor }} |
| 111 | - name: Checkout Library |
| 112 | if: steps.cache.outputs.cache-hit != 'true' |
| 113 | run: | |
| 114 | git submodule update --init 'TMessagesProj/jni/*' |
| 115 | - name: FFmpeg Cache |
| 116 | uses: actions/cache@v2 |
| 117 | if: steps.cache.outputs.cache-hit != 'true' |
| 118 | with: |
| 119 | path: | |
| 120 | TMessagesProj/jni/ffmpeg/build |
| 121 | TMessagesProj/jni/libvpx/build |
| 122 | key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh', 'TMessagesProj/jni/patches/ffmpeg/*') }} |
| 123 | - name: BoringSSL Cache |
| 124 | uses: actions/cache@v2 |
| 125 | if: steps.cache.outputs.cache-hit != 'true' |
| 126 | with: |
| 127 | path: | |
| 128 | TMessagesProj/jni/boringssl/build |
| 129 | key: ${{ hashFiles('boringssl_status') }} |
| 130 | - name: Setup Android SDK Tools |
| 131 | uses: android-actions/setup-android@v2 |
| 132 | if: steps.cache.outputs.cache-hit != 'true' |
| 133 | - name: Install NDK |
| 134 | if: steps.cache.outputs.cache-hit != 'true' |
| 135 | run: | |
| 136 | echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.4.7075529" --sdk_root=${ANDROID_SDK_ROOT} &> /dev/null |
| 137 | echo "sdk.dir=${ANDROID_HOME}" > local.properties |
| 138 | echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties |
| 139 | - name: Fix BoringSSL |
| 140 | if: steps.cache.outputs.cache-hit != 'true' |
| 141 | run: | |
| 142 | cd TMessagesProj/jni |
| 143 | ./patch_boringssl.sh |
| 144 | - name: Native Build |
| 145 | if: steps.cache.outputs.cache-hit != 'true' |
| 146 | run: | |
| 147 | export NATIVE_TARGET="${{ matrix.flavor }}" |
| 148 | ./run libs native |
| 149 | v2ray: |
| 150 | name: Native Build (V2ray) |
| 151 | runs-on: ubuntu-latest |
| 152 | steps: |
| 153 | - name: Checkout |
| 154 | uses: actions/checkout@v2 |
| 155 | - name: Fetch Status |
| 156 | run: git submodule status v2ray > v2ray_status |
| 157 | - name: V2ray Cache |
| 158 | id: cache |
| 159 | uses: actions/cache@v2 |
| 160 | with: |
| 161 | path: | |
| 162 | TMessagesProj/libs/libv2ray.aar |
| 163 | key: ${{ hashFiles('bin/libs/v2ray/*', 'v2ray_status') }} |
| 164 | - name: Setup Android SDK Tools |
| 165 | uses: android-actions/setup-android@v2 |
| 166 | if: steps.cache.outputs.cache-hit != 'true' |
| 167 | - name: Install NDK |
| 168 | if: steps.cache.outputs.cache-hit != 'true' |
| 169 | run: | |
| 170 | echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.4.7075529" --sdk_root=${ANDROID_SDK_ROOT} &> /dev/null |
| 171 | echo "sdk.dir=${ANDROID_HOME}" > local.properties |
| 172 | echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties |
| 173 | - name: Install Golang |
| 174 | uses: actions/setup-go@v2 |
| 175 | if: steps.cache.outputs.cache-hit != 'true' |
| 176 | with: |
| 177 | go-version: 1.16 |
| 178 | - name: Native Build |
| 179 | if: steps.cache.outputs.cache-hit != 'true' |
| 180 | run: ./run libs v2ray |
| 181 | shadowsocks: |
| 182 | name: Native Build (Shadowsocks) |
| 183 | runs-on: ubuntu-latest |
| 184 | steps: |
| 185 | - name: Checkout |
| 186 | uses: actions/checkout@v2 |
| 187 | - name: Fetch Status |
| 188 | run: git submodule status ss-rust/src/main/rust/shadowsocks-rust > shadowsocks_status |
| 189 | - name: Shadowsocks Cache |
| 190 | id: cache |
| 191 | uses: actions/cache@v2 |
| 192 | with: |
| 193 | path: | |
| 194 | TMessagesProj/libs/ss-rust-release.aar |
| 195 | key: ${{ hashFiles('shadowsocks_status') }} |
| 196 | - name: Setup Android SDK Tools |
| 197 | uses: android-actions/setup-android@v2 |
| 198 | if: steps.cache.outputs.cache-hit != 'true' |
| 199 | - name: Install NDK |
| 200 | if: steps.cache.outputs.cache-hit != 'true' |
| 201 | run: | |
| 202 | echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.4.7075529" --sdk_root=${ANDROID_SDK_ROOT} &> /dev/null |
| 203 | echo "sdk.dir=${ANDROID_HOME}" > local.properties |
| 204 | echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties |
| 205 | - name: Install Rust |
| 206 | if: steps.cache.outputs.cache-hit != 'true' |
| 207 | run: ./run init action shadowsocks |
| 208 | - name: Native Build |
| 209 | if: steps.cache.outputs.cache-hit != 'true' |
| 210 | run: ./run libs shadowsocks |
| 211 | shadowsocksr: |
| 212 | name: Native Build (ShadowsocksR) |
| 213 | runs-on: ubuntu-latest |
| 214 | steps: |
| 215 | - name: Checkout |
| 216 | uses: actions/checkout@v2 |
| 217 | - name: Fetch Status |
| 218 | run: git submodule status 'ssr-libev/*' > shadowsocksr_status |
| 219 | - name: ShadowsocksR Cache |
| 220 | id: cache |
| 221 | uses: actions/cache@v2 |
| 222 | with: |
| 223 | path: | |
| 224 | TMessagesProj/libs/ssr-libev-release.aar |
| 225 | key: ${{ hashFiles('shadowsocksr_status') }} |
| 226 | - name: Setup Android SDK Tools |
| 227 | uses: android-actions/setup-android@v2 |
| 228 | if: steps.cache.outputs.cache-hit != 'true' |
| 229 | - name: Install NDK |
| 230 | if: steps.cache.outputs.cache-hit != 'true' |
| 231 | run: | |
| 232 | echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.4.7075529" --sdk_root=${ANDROID_SDK_ROOT} &> /dev/null |
| 233 | echo "sdk.dir=${ANDROID_HOME}" > local.properties |
| 234 | echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties |
| 235 | - name: Native Build |
| 236 | if: steps.cache.outputs.cache-hit != 'true' |
| 237 | run: ./run libs ssr |
| 238 | build: |
| 239 | name: Gradle Build |
| 240 | runs-on: ubuntu-latest |
| 241 | needs: |
| 242 | - native |
| 243 | - v2ray |
| 244 | - shadowsocks |
| 245 | - shadowsocksr |
| 246 | strategy: |
| 247 | matrix: |
| 248 | flavor: |
| 249 | - MiniRelease |
| 250 | - MiniReleaseNoGcm |
| 251 | - FullRelease |
| 252 | - FullReleaseNoGcm |
| 253 | steps: |
| 254 | - name: Checkout |
| 255 | uses: actions/checkout@v2 |
| 256 | - name: Setup Android SDK Tools |
| 257 | uses: android-actions/setup-android@v2 |
| 258 | - name: Install NDK |
| 259 | run: | |
| 260 | echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.4.7075529" --sdk_root=${ANDROID_SDK_ROOT} &> /dev/null |
| 261 | echo "sdk.dir=${ANDROID_HOME}" > local.properties |
| 262 | echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties |
| 263 | - name: Fetch Status |
| 264 | run: | |
| 265 | git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status |
| 266 | git submodule status TMessagesProj/jni/boringssl > boringssl_status |
| 267 | git submodule status ss-rust/src/main/rust/shadowsocks-rust > shadowsocks_status |
| 268 | git submodule status 'ssr-libev/*' > shadowsocksr_status |
| 269 | git submodule status v2ray > v2ray_status |
| 270 | - name: Native Cache (armeabi-v7a) |
| 271 | uses: actions/cache@v2 |
| 272 | with: |
| 273 | path: | |
| 274 | TMessagesProj/src/main/libs |
| 275 | key: ${{ hashFiles('TMessagesProj/jni/**', 'ffmpeg_status', 'boringssl_status') }}-armeabi-v7a |
| 276 | - name: Native Cache (arm64-v8a) |
| 277 | uses: actions/cache@v2 |
| 278 | with: |
| 279 | path: | |
| 280 | TMessagesProj/src/main/libs |
| 281 | key: ${{ hashFiles('TMessagesProj/jni/**', 'ffmpeg_status', 'boringssl_status') }}-arm64-v8a |
| 282 | - name: Native Cache (x86) |
| 283 | uses: actions/cache@v2 |
| 284 | with: |
| 285 | path: | |
| 286 | TMessagesProj/src/main/libs |
| 287 | key: ${{ hashFiles('TMessagesProj/jni/**', 'ffmpeg_status', 'boringssl_status') }}-x86 |
| 288 | - name: Native Cache (x86_64) |
| 289 | uses: actions/cache@v2 |
| 290 | with: |
| 291 | path: | |
| 292 | TMessagesProj/src/main/libs |
| 293 | key: ${{ hashFiles('TMessagesProj/jni/**', 'ffmpeg_status', 'boringssl_status') }}-x86_64 |
| 294 | - name: V2ray Cache |
| 295 | uses: actions/cache@v2 |
| 296 | with: |
| 297 | path: | |
| 298 | TMessagesProj/libs/libv2ray.aar |
| 299 | key: ${{ hashFiles('bin/libs/v2ray/*', 'v2ray_status') }} |
| 300 | - name: Shadowsocks Cache |
| 301 | uses: actions/cache@v2 |
| 302 | with: |
| 303 | path: | |
| 304 | TMessagesProj/libs/ss-rust-release.aar |
| 305 | key: ${{ hashFiles('shadowsocks_status') }} |
| 306 | - name: ShadowsocksR Cache |
| 307 | uses: actions/cache@v2 |
| 308 | with: |
| 309 | path: | |
| 310 | TMessagesProj/libs/ssr-libev-release.aar |
| 311 | key: ${{ hashFiles('shadowsocksr_status') }} |
| 312 | - name: Configure Gradle |
| 313 | run: | |
| 314 | sed -i -e "s/16384/6144/g" gradle.properties |
| 315 | echo "sdk.dir=${ANDROID_HOME}" >> local.properties |
| 316 | # echo "ndk.dir=${ANDROID_HOME}/ndk-bundle" >> local.properties |
| 317 | - name: Gradle cache |
| 318 | uses: actions/cache@v2 |
| 319 | with: |
| 320 | path: ~/.gradle |
| 321 | key: gradle-${{ hashFiles('**/*.gradle') }} |
| 322 | - name: Debug Build |
| 323 | run: | |
| 324 | export LOCAL_PROPERTIES="${{ secrets.LOCAL_PROPERTIES }}" |
| 325 | export DEBUG_BUILD=true |
| 326 | ./gradlew TMessagesProj:assemble${{ matrix.flavor }} |
| 327 |
| 328 | echo "APK_FILE=$(find TMessagesProj/build/outputs/apk -name '*arm64-v8a*.apk')" >> $GITHUB_ENV |
| 329 | echo "APK_FILE_ARMV7=$(find TMessagesProj/build/outputs/apk -name '*armeabi*.apk')" >> $GITHUB_ENV |
| 330 | echo "APK_FILE_X86=$(find TMessagesProj/build/outputs/apk -name '*x86-*.apk')" >> $GITHUB_ENV |
| 331 | echo "APK_FILE_X64=$(find TMessagesProj/build/outputs/apk -name '*x86_64*.apk')" >> $GITHUB_ENV |
| 332 | - uses: actions/upload-artifact@v2 |
| 333 | if: github.event.inputs.artifacts == 'y' |
| 334 | name: Upload apk (arm64-v8a) |
| 335 | with: |
| 336 | name: NekoX-${{ matrix.flavor }}-arm64-v8a |
| 337 | path: ${{ env.APK_FILE }} |
| 338 | - uses: actions/upload-artifact@v2 |
| 339 | if: github.event.inputs.artifacts == 'y' |
| 340 | name: Upload apk (armeabi-v7a) |
| 341 | with: |
| 342 | name: NekoX-${{ matrix.flavor }}-armeabi-v7a |
| 343 | path: ${{ env.APK_FILE_ARMV7 }} |
| 344 | - uses: actions/upload-artifact@v2 |
| 345 | if: github.event.inputs.artifacts == 'y' |
| 346 | name: Upload apk (x86_64) |
| 347 | with: |
| 348 | name: NekoX-${{ matrix.flavor }}-x86_64 |
| 349 | path: ${{ env.APK_FILE_X64 }} |
| 350 | - uses: actions/upload-artifact@v2 |
| 351 | if: github.event.inputs.artifacts == 'y' |
| 352 | name: Upload apk (x86) |
| 353 | with: |
| 354 | name: NekoX-${{ matrix.flavor }}-x86 |
| 355 | path: ${{ env.APK_FILE_X86 }} |
| 356 |
| 357 | build-dev: |
| 358 | name: Gradle Build |
| 359 | runs-on: ubuntu-latest |
| 360 | if: ${{ github.event_name != 'pull_request' && success() }} |
| 361 | needs: |
| 362 | - native |
| 363 | - v2ray |
| 364 | - telegram-bot-api |
| 365 | steps: |
| 366 | - name: Checkout |
| 367 | uses: actions/checkout@v2 |
| 368 | - name: Setup Android SDK Tools |
| 369 | uses: android-actions/setup-android@v2 |
| 370 | - name: Install NDK |
| 371 | run: | |
| 372 | echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;21.4.7075529" --sdk_root=${ANDROID_SDK_ROOT} &> /dev/null |
| 373 | echo "sdk.dir=${ANDROID_HOME}" > local.properties |
| 374 | echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties |
| 375 | - name: Fetch Status |
| 376 | run: | |
| 377 | git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status |
| 378 | git submodule status TMessagesProj/jni/boringssl > boringssl_status |
| 379 | git submodule status ss-rust/src/main/rust/shadowsocks-rust > shadowsocks_status |
| 380 | git submodule status 'ssr-libev/*' > shadowsocksr_status |
| 381 | git submodule status v2ray > v2ray_status |
| 382 | - name: Native Cache (arm64-v8a) |
| 383 | uses: actions/cache@v2 |
| 384 | with: |
| 385 | path: | |
| 386 | TMessagesProj/src/main/libs |
| 387 | key: ${{ hashFiles('TMessagesProj/jni/**', 'ffmpeg_status', 'boringssl_status') }}-arm64-v8a |
| 388 | - name: V2ray Cache |
| 389 | uses: actions/cache@v2 |
| 390 | with: |
| 391 | path: | |
| 392 | TMessagesProj/libs/libv2ray.aar |
| 393 | key: ${{ hashFiles('bin/libs/v2ray/*', 'v2ray_status') }} |
| 394 | - name: Configure Gradle |
| 395 | run: | |
| 396 | sed -i -e "s/16384/6144/g" gradle.properties |
| 397 | echo "sdk.dir=${ANDROID_HOME}" >> local.properties |
| 398 | # echo "ndk.dir=${ANDROID_HOME}/ndk-bundle" >> local.properties |
| 399 | - name: Gradle cache |
| 400 | uses: actions/cache@v2 |
| 401 | with: |
| 402 | path: ~/.gradle |
| 403 | key: gradle-${{ hashFiles('**/*.gradle') }} |
| 404 | - name: Download Telegram Bot API Binary |
| 405 | uses: actions/download-artifact@master |
| 406 | with: |
| 407 | name: telegram-bot-api-binary |
| 408 | path: . |
| 409 | - name: Debug Build |
| 410 | run: | |
| 411 | export LOCAL_PROPERTIES="${{ secrets.LOCAL_PROPERTIES }}" |
| 412 | export DEBUG_BUILD=true |
| 413 | export NATIVE_TARGET=arm64-v8a |
| 414 | ./gradlew TMessagesProj:assembleMiniRelease |
| 415 | - name: Send Build |
| 416 | run: | |
| 417 | chmod +x telegram-bot-api-binary |
| 418 | function start() { |
| 419 | ./telegram-bot-api-binary --api-id=21724 --api-hash=3e0cb5efcd52300aec5994fdfc5bdc16 --local 2>&1 > /dev/null & |
| 420 | } |
| 421 | start |
| 422 | curl http://127.0.0.1:8081/ || start |
| 423 | curl http://127.0.0.1:8081/ || start |
| 424 | curl http://127.0.0.1:8081/ || start |
| 425 | apk=$(find TMessagesProj/build/outputs/apk/mini/release -name '*arm64-v8a*.apk' | head -n 1) |
| 426 | curl http://127.0.0.1:8081/bot${{ secrets.HELPER_BOT_TOKEN }}/sendDocument \ |
| 427 | -X POST \ |
| 428 | -F chat_id="${{ secrets.HELPER_BOT_TARGET }}" \ |
| 429 | -F document="@$apk" \ |
| 430 | -F caption="${{ github.event.head_commit.message }}\n$GITHUB_SHA" \ |
| 431 | --silent --show-error --fail >/dev/null |
| 432 | pkill telegram-bot |
| 433 |
| 434 | telegram-bot-api: |
| 435 | name: Telegram Bot API |
| 436 | runs-on: ubuntu-latest |
| 437 | steps: |
| 438 | - name: Checkout |
| 439 | uses: actions/checkout@v2 |
| 440 | - name: Clone Telegram Bot API |
| 441 | run: | |
| 442 | git clone --recursive https://github.com/tdlib/telegram-bot-api.git |
| 443 | git status telegram-bot-api >> telegram-bot-api-status |
| 444 | - name: Cache Bot API Binary |
| 445 | id: cache-bot-api |
| 446 | uses: actions/cache@v2 |
| 447 | with: |
| 448 | path: telegram-bot-api-binary |
| 449 | key: CI-telegram-bot-api-${{ hashFiles('telegram-bot-api-status') }} |
| 450 | - name: Compile Telegram Bot API |
| 451 | if: steps.cache-bot-api.outputs.cache-hit != 'true' |
| 452 | run: | |
| 453 | sudo apt-get update |
| 454 | sudo apt-get install make git zlib1g-dev libssl-dev gperf cmake g++ |
| 455 | cd telegram-bot-api |
| 456 | rm -rf build |
| 457 | mkdir build |
| 458 | cd build |
| 459 | cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=.. .. |
| 460 | cmake --build . --target install -j$(nproc) |
| 461 | cd ../.. |
| 462 | ls -l telegram-bot-api/bin/telegram-bot-api* |
| 463 | cp telegram-bot-api/bin/telegram-bot-api telegram-bot-api-binary |
| 464 | - name: Upload Binary |
| 465 | uses: actions/upload-artifact@master |
| 466 | with: |
| 467 | name: telegram-bot-api-binary |
| 468 | path: telegram-bot-api-binary |
| 469 |