File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : Android CI x86
2
2
3
- on : [push ]
3
+ on : [pull_request ]
4
4
5
5
jobs :
6
6
build :
20
20
run : wget https://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip;
21
21
unzip android-ndk-r17c-darwin-x86_64.zip
22
22
- name : Install Swift Android Toolchain
23
- run : SWIFT_ANDROID=$(curl -fsSL https://api.bintray .com/packages /readdle/swift-android-toolchain/swift-android-toolchain/versions/_latest | python -c 'import json,sys;print(json.load(sys.stdin))["name"] ');
24
- wget https://dl.bintray. com/readdle/swift-android-toolchain/swift-android-$SWIFT_ANDROID.zip;
23
+ run : SWIFT_ANDROID=$(curl --silent " https://api.github .com/repos /readdle/swift-android-toolchain/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/ ');
24
+ wget https://github. com/readdle/swift-android-toolchain/releases/latest/download /swift-android-$SWIFT_ANDROID.zip;
25
25
unzip swift-android-$SWIFT_ANDROID.zip;
26
+ rm -rf swift-android-$SWIFT_ANDROID.zip;
26
27
swift-android-$SWIFT_ANDROID/bin/swift-android tools --update;
27
28
ln -sfn swift-android-$SWIFT_ANDROID swift-android-current
28
29
- name : Download Android Emulator
Original file line number Diff line number Diff line change 1
1
name : Android CI x86_64
2
2
3
- on : [push ]
3
+ on : [pull_request ]
4
4
5
5
jobs :
6
6
build :
20
20
run : wget https://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip;
21
21
unzip android-ndk-r17c-darwin-x86_64.zip
22
22
- name : Install Swift Android Toolchain
23
- run : SWIFT_ANDROID=$(curl -fsSL https://api.bintray .com/packages /readdle/swift-android-toolchain/swift-android-toolchain/versions/_latest | python -c 'import json,sys;print(json.load(sys.stdin))["name"] ');
24
- wget https://dl.bintray. com/readdle/swift-android-toolchain/swift-android-$SWIFT_ANDROID.zip;
23
+ run : SWIFT_ANDROID=$(curl --silent " https://api.github .com/repos /readdle/swift-android-toolchain/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/ ');
24
+ wget https://github. com/readdle/swift-android-toolchain/releases/latest/download /swift-android-$SWIFT_ANDROID.zip;
25
25
unzip swift-android-$SWIFT_ANDROID.zip;
26
+ rm -rf swift-android-$SWIFT_ANDROID.zip;
26
27
swift-android-$SWIFT_ANDROID/bin/swift-android tools --update;
27
28
ln -sfn swift-android-$SWIFT_ANDROID swift-android-current
28
29
- name : Download Android Emulator
You can’t perform that action at this time.
0 commit comments