Build ReVanced Extended #70
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: Build ReVanced Extended | |
on: | |
workflow_dispatch: | |
jobs: | |
prepare-matrix: | |
runs-on: ubuntu-latest | |
outputs: | |
apps: ${{ steps.set-matrix.outputs.apps }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: set-matrix | |
run: | | |
APPS=$(yq e '.apps | keys | .[]' test.yaml | jq -R -s -c 'split("\n")[:-1]') | |
echo "apps=$APPS" >> $GITHUB_OUTPUT | |
build: | |
needs: prepare-matrix | |
name: Build ${{ matrix.app }} | |
permissions: write-all | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
app: ${{ fromJson(needs.prepare-matrix.outputs.apps) }} | |
steps: | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "zulu" | |
java-version: "17" | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install yq | |
run: | | |
sudo apt-get install -y yq | |
- name: Install pup HTML parser | |
run: | | |
wget https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_linux_amd64.zip | |
unzip pup_v0.4.0_linux_amd64.zip -d /usr/local/bin | |
- name: Setup fetch script | |
run: | | |
chmod +x ./main.sh | |
chmod +x ./script.sh | |
chmod +x ./fetch_link.sh | |
ls | |
- name: Build app | |
run: | | |
./main.sh ${{ matrix.app }} | |
- name: Upload APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: revanced-${{ matrix.app }}-apk | |
path: revanced-${{ matrix.app }}.apk |