mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-10-17 01:46:28 -05:00
36 lines
849 B
YAML
36 lines
849 B
YAML
|
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.3.0
|
||
|
with:
|
||
|
java-version: "17"
|
||
|
distribution: "adopt"
|
||
|
|
||
|
- name: Download APKs from APKMirror
|
||
|
run: ./download_apkmirror.sh
|
||
|
|
||
|
- name: Test Build APKs
|
||
|
run: |
|
||
|
./build_revanced.sh
|
||
|
for filename in build/revanced-root.apk build/revanced-nonroot.apk build/revanced-music-root.apk build/revanced-music-nonroot.apk; do
|
||
|
if [ -e "$filename" ]; then
|
||
|
printf '"%s" exists\n' "$filename"
|
||
|
else
|
||
|
echo "APK build failed"
|
||
|
exit 1
|
||
|
fi
|
||
|
done
|
||
|
rm -rf build
|