commit
9bee253fd5
23
.github/workflows/natives.yaml
vendored
23
.github/workflows/natives.yaml
vendored
@ -2,27 +2,24 @@ name: Build TDLib natives
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * 0' # weekly
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- {os: ubuntu-20.04, arch: "linux/386", implementation: "tdlight"}
|
# - {os: ubuntu-20.04, arch: "linux/386", implementation: "tdlight"}
|
||||||
- {os: ubuntu-20.04, arch: "linux/386", implementation: "tdlib"}
|
# - {os: ubuntu-20.04, arch: "linux/386", implementation: "tdlib"}
|
||||||
- {os: ubuntu-20.04, arch: "linux/amd64", implementation: "tdlight"}
|
- {os: ubuntu-20.04, arch: "linux/amd64", implementation: "tdlight"}
|
||||||
- {os: ubuntu-20.04, arch: "linux/amd64", implementation: "tdlib"}
|
- {os: ubuntu-20.04, arch: "linux/amd64", implementation: "tdlib"}
|
||||||
- {os: ubuntu-20.04, arch: "linux/arm/v6", implementation: "tdlight"}
|
# - {os: ubuntu-20.04, arch: "linux/arm/v6", implementation: "tdlight"}
|
||||||
- {os: ubuntu-20.04, arch: "linux/arm/v6", implementation: "tdlib"}
|
# - {os: ubuntu-20.04, arch: "linux/arm/v6", implementation: "tdlib"}
|
||||||
- {os: ubuntu-20.04, arch: "linux/arm/v7", implementation: "tdlight"}
|
# - {os: ubuntu-20.04, arch: "linux/arm/v7", implementation: "tdlight"}
|
||||||
- {os: ubuntu-20.04, arch: "linux/arm/v7", implementation: "tdlib"}
|
# - {os: ubuntu-20.04, arch: "linux/arm/v7", implementation: "tdlib"}
|
||||||
- {os: ubuntu-20.04, arch: "linux/arm64", implementation: "tdlight"}
|
# - {os: ubuntu-20.04, arch: "linux/arm64", implementation: "tdlight"}
|
||||||
- {os: ubuntu-20.04, arch: "linux/arm64", implementation: "tdlib"}
|
# - {os: ubuntu-20.04, arch: "linux/arm64", implementation: "tdlib"}
|
||||||
- {os: ubuntu-20.04, arch: "linux/ppc64le", implementation: "tdlight"}
|
# - {os: ubuntu-20.04, arch: "linux/ppc64le", implementation: "tdlight"}
|
||||||
- {os: ubuntu-20.04, arch: "linux/ppc64le", implementation: "tdlib"}
|
# - {os: ubuntu-20.04, arch: "linux/ppc64le", implementation: "tdlib"}
|
||||||
- {os: windows-2019, arch: "amd64", implementation: "tdlight"}
|
- {os: windows-2019, arch: "amd64", implementation: "tdlight"}
|
||||||
- {os: windows-2019, arch: "amd64", implementation: "tdlib"}
|
- {os: windows-2019, arch: "amd64", implementation: "tdlib"}
|
||||||
- {os: macos-10.15, arch: "amd64", implementation: "tdlight"}
|
- {os: macos-10.15, arch: "amd64", implementation: "tdlight"}
|
||||||
|
3
.github/workflows/tdapi.yaml
vendored
3
.github/workflows/tdapi.yaml
vendored
@ -2,9 +2,6 @@ name: Generate TdApi.java
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * 0' # weekly
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 3f856ccb46f79936b162eeeb0f645cd3d457cac8
|
Subproject commit 29ded98a46cf98e77de1d725ed33e28f76c0a23d
|
@ -1 +1 @@
|
|||||||
Subproject commit 9a01a9da1d8f5e8d16f0f7b640bc2031c49738e1
|
Subproject commit 2bcb81bec0ed3f537beef0d918757a0839e2209e
|
@ -2,7 +2,7 @@
|
|||||||
cd ../../generated
|
cd ../../generated
|
||||||
|
|
||||||
[ -f ./src/main/java/it/tdlight/jni/TdApi.java ] && rm ./src/main/java/it/tdlight/jni/TdApi.java
|
[ -f ./src/main/java/it/tdlight/jni/TdApi.java ] && rm ./src/main/java/it/tdlight/jni/TdApi.java
|
||||||
mvn clean package
|
mvn -B -q clean package
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
cd ../../generated
|
cd ../../generated
|
||||||
|
|
||||||
mvn clean package
|
mvn -B -q clean package
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -10,7 +10,7 @@ fi
|
|||||||
|
|
||||||
cd ../../generated
|
cd ../../generated
|
||||||
|
|
||||||
mvn -B -Drevision=${REVISION} clean deploy
|
mvn -B -q -Drevision=${REVISION} clean deploy
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
cd ../../generated
|
cd ../../generated
|
||||||
|
|
||||||
mvn -B deploy
|
mvn -B -q deploy
|
||||||
|
|
||||||
echo "Done."
|
echo "Done."
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -70,6 +70,11 @@ cmake --build . --target prepare_cross_compiling --config Release ${CPU_CORES}
|
|||||||
echo "Generating java tools..."
|
echo "Generating java tools..."
|
||||||
cmake --build . --target td_generate_java_api --config Release ${CPU_CORES}
|
cmake --build . --target td_generate_java_api --config Release ${CPU_CORES}
|
||||||
|
|
||||||
|
# Copy tlo files
|
||||||
|
echo "Copying *.tlo files..."
|
||||||
|
cp -r ../implementation/td/generate/auto/tlo/. ../implementation/td/generate/scheme/.
|
||||||
|
|
||||||
|
|
||||||
echo "Generated executable '$(realpath -m ./td/generate/generate_common)'"
|
echo "Generated executable '$(realpath -m ./td/generate/generate_common)'"
|
||||||
echo "Generated executable '$(realpath -m ./td/generate/td_generate_java_api)'"
|
echo "Generated executable '$(realpath -m ./td/generate/td_generate_java_api)'"
|
||||||
echo "Generated executable '$(realpath -m ./td/generate/td_generate_json)'"
|
echo "Generated executable '$(realpath -m ./td/generate/td_generate_json)'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user