Merge pull request #2 from hardingadonis/imgbot #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ReVanced Test Build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Java JDK | |
uses: actions/setup-java@v3.10.0 | |
with: | |
java-version: "17" | |
distribution: "zulu" | |
- name: Download APKs from APKMirror | |
run: ./download_apkmirror.sh | |
- name: Test Build APKs | |
run: | | |
./build_revanced.sh | |
for filename in build/*.apk; do | |
if [ -e "$filename" ]; then | |
printf '"%s" exists\n' "$filename" | |
else | |
echo "APK build failed" | |
exit 1 | |
fi | |
done | |
rm -rf build |