Try to enable ARM builds

This commit is contained in:
Alex Root Junior 2021-12-13 01:11:47 +02:00
parent 199f77237b
commit 6746b72e64
4 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: linux/386,linux/amd64
platforms: linux/386,linux/amd64,linux/arm/v7,linux/arm64
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

View File

@ -8,7 +8,7 @@ COPY telegram-bot-api /usr/src/telegram-bot-api
RUN mkdir -p build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=.. .. \
&& cmake --build . --target install -j $(nproc) \
&& cmake --build . --target install -j $(($(nproc) + 2)) \
&& strip /usr/src/telegram-bot-api/bin/telegram-bot-api
FROM alpine:3.12

View File

@ -3,7 +3,7 @@ image_tag := $(shell date +%Y%m%d)
.PHONY: update
update:
git submodule update --init --recursive --remote --merge
git submodule -q foreach git pull -q origin master
.PHONY: build
build:

View File

@ -1,6 +1,6 @@
# Example
By default [tdlib/telegram-bot-api](https://github.com/tdlib/telegram-bot-api)
By default, [tdlib/telegram-bot-api](https://github.com/tdlib/telegram-bot-api)
doesn't provide possibility to download files from API (without local-mode)
so that's meat you will need to expose files somehow differently, for example by nginx.