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 11name : Android CI x86
22
3- on : [push ]
3+ on : [pull_request ]
44
55jobs :
66 build :
2020 run : wget https://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip;
2121 unzip android-ndk-r17c-darwin-x86_64.zip
2222 - 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;
2525 unzip swift-android-$SWIFT_ANDROID.zip;
26+ rm -rf swift-android-$SWIFT_ANDROID.zip;
2627 swift-android-$SWIFT_ANDROID/bin/swift-android tools --update;
2728 ln -sfn swift-android-$SWIFT_ANDROID swift-android-current
2829 - name : Download Android Emulator
Original file line number Diff line number Diff line change 11name : Android CI x86_64
22
3- on : [push ]
3+ on : [pull_request ]
44
55jobs :
66 build :
2020 run : wget https://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip;
2121 unzip android-ndk-r17c-darwin-x86_64.zip
2222 - 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;
2525 unzip swift-android-$SWIFT_ANDROID.zip;
26+ rm -rf swift-android-$SWIFT_ANDROID.zip;
2627 swift-android-$SWIFT_ANDROID/bin/swift-android tools --update;
2728 ln -sfn swift-android-$SWIFT_ANDROID swift-android-current
2829 - name : Download Android Emulator
You can’t perform that action at this time.
0 commit comments