Skip to content

Commit eea95ae

Browse files
authored
Add tonlib libraries for Android to release (#1169)
* add android tonlib artifacts to release * change final artifacts access rights
1 parent b304b1c commit eea95ae

File tree

9 files changed

+26
-11
lines changed

9 files changed

+26
-11
lines changed

.github/workflows/build-ton-linux-android-tonlib.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ jobs:
2828
- name: Upload artifacts
2929
uses: actions/upload-artifact@master
3030
with:
31-
name: tonlib-android
31+
name: ton-android-tonlib
3232
path: artifacts

.github/workflows/create-release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ jobs:
8383
workflow_conclusion: success
8484
skip_unpack: true
8585

86+
- name: Download Android Tonlib artifacts
87+
uses: dawidd6/action-download-artifact@v2
88+
with:
89+
workflow: build-ton-linux-android-tonlib.yml
90+
path: artifacts
91+
workflow_conclusion: success
92+
skip_unpack: true
93+
8694
- name: Show all artifacts
8795
run: |
8896
tree artifacts
@@ -501,3 +509,11 @@ jobs:
501509
file: artifacts/ton-wasm-binaries.zip
502510
asset_name: ton-wasm-binaries.zip
503511
tag: ${{ steps.tag.outputs.TAG }}
512+
513+
- name: Upload Android Tonlib artifacts
514+
uses: svenstaro/upload-release-action@v2
515+
with:
516+
repo_token: ${{ secrets.GITHUB_TOKEN }}
517+
file: artifacts/ton-android-tonlib.zip
518+
asset_name: ton-android-tonlib.zip
519+
tag: ${{ steps.tag.outputs.TAG }}

assembly/native/build-macos-portable.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ if [ "$with_artifacts" = true ]; then
192192
echo Creating artifacts...
193193
rm -rf artifacts
194194
mkdir artifacts
195-
cp crypto/fift/lib artifacts/
196-
cp -R crypto/smartcont/ artifacts/
197195
cp build/storage/storage-daemon/storage-daemon artifacts/
198196
cp build/storage/storage-daemon/storage-daemon-cli artifacts/
199197
cp build/blockchain-explorer/blockchain-explorer artifacts/
@@ -213,9 +211,9 @@ if [ "$with_artifacts" = true ]; then
213211
cp build/utils/json2tlo artifacts/
214212
cp build/adnl/adnl-proxy artifacts/
215213
cp build/emulator/libemulator.dylib artifacts/
216-
chmod +x artifacts/*
217214
rsync -r crypto/smartcont artifacts/
218215
rsync -r crypto/fift/lib artifacts/
216+
chmod -R +x artifacts/*
219217
fi
220218

221219
if [ "$with_tests" = true ]; then

assembly/native/build-macos-shared.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ if [ "$with_artifacts" = true ]; then
140140
cp build/utils/json2tlo artifacts/
141141
cp build/adnl/adnl-proxy artifacts/
142142
cp build/emulator/libemulator.dylib artifacts/
143-
chmod +x artifacts/*
144-
rsync -r crypto/smartcont artifacts/
145-
rsync -r crypto/fift/lib artifacts/
143+
cp -R crypto/smartcont artifacts/
144+
cp -R crypto/fift/lib artifacts/
145+
chmod -R +x artifacts/*
146146
fi
147147

148148
if [ "$with_tests" = true ]; then

assembly/native/build-ubuntu-portable.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ cd ..
193193
if [ "$with_artifacts" = true ]; then
194194
rm -rf artifacts
195195
mkdir artifacts
196-
cp crypto/fift/lib artifacts/
197-
cp -R crypto/smartcont/ artifacts/
198196
mv build/tonlib/libtonlibjson.so.0.5 build/tonlib/libtonlibjson.so
199197
cp build/storage/storage-daemon/storage-daemon build/storage/storage-daemon/storage-daemon-cli \
200198
build/crypto/fift build/crypto/tlbc build/crypto/func build/crypto/create-state build/blockchain-explorer/blockchain-explorer \
@@ -204,9 +202,9 @@ if [ "$with_artifacts" = true ]; then
204202
build/utils/generate-random-id build/utils/json2tlo build/adnl/adnl-proxy build/emulator/libemulator.so \
205203
artifacts
206204
test $? -eq 0 || { echo "Can't copy final binaries"; exit 1; }
207-
chmod +x artifacts/*
208205
cp -R crypto/smartcont artifacts
209206
cp -R crypto/fift/lib artifacts
207+
chmod -R +x artifacts/*
210208
fi
211209

212210
if [ "$with_tests" = true ]; then

assembly/native/build-ubuntu-shared.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ if [ "$with_artifacts" = true ]; then
112112
build/utils/generate-random-id build/utils/json2tlo build/adnl/adnl-proxy build/emulator/libemulator.so \
113113
artifacts
114114
test $? -eq 0 || { echo "Can't copy final binaries"; exit 1; }
115-
chmod +x artifacts/*
116115
cp -R crypto/smartcont artifacts
117116
cp -R crypto/fift/lib artifacts
117+
chmod -R +x artifacts/*
118118
fi
119119

120120
if [ "$with_tests" = true ]; then

assembly/nix/build-linux-arm64-nix.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ cp ./result/lib/libtonlibjson.so.0.5 artifacts/libtonlibjson.so
3535
cp ./result/lib/libemulator.so artifacts/
3636
cp ./result/lib/fift/* artifacts/lib/
3737
cp -r ./result/share/ton/smartcont artifacts/
38+
chmod -R +x artifacts

assembly/nix/build-linux-x86-64-nix.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ cp ./result/lib/libtonlibjson.so.0.5 artifacts/libtonlibjson.so
3535
cp ./result/lib/libemulator.so artifacts/
3636
cp ./result/lib/fift/* artifacts/lib/
3737
cp -r ./result/share/ton/smartcont artifacts/
38+
chmod -R +x artifacts

assembly/nix/build-macos-nix.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ cp ./result/lib/libtonlibjson.dylib artifacts/
3535
cp ./result/lib/libemulator.dylib artifacts/
3636
cp ./result/lib/fift/* artifacts/lib/
3737
cp -r ./result/share/ton/smartcont artifacts/
38+
chmod -R +x artifacts

0 commit comments

Comments
 (0)