mirror of
https://github.com/PaiGramTeam/telegram-bot-api-build.git
synced 2024-11-21 14:38:23 +00:00
Try to enable ARM builds
This commit is contained in:
parent
199f77237b
commit
6746b72e64
2
.github/workflows/docker-image.yml
vendored
2
.github/workflows/docker-image.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
2
Makefile
2
Makefile
@ -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:
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user