Update rb-verify.yml #2
This file contains hidden or 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: Reproducible builds verifier | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| workflow_dispatch: | |
| jobs: | |
| verify-reproducible-builds: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Install required packages | |
| run: sudo apt install npm node-typescript rsync apksigcopier | |
| - name: Set env | |
| uses: "WyriHaximus/github-action-get-previous-tag@v1" | |
| run: | | |
| echo "VERSION_NAME=${{ steps.previoustag.outputs.tag }}" >> $GITHUB_ENV | |
| echo "RELEASE_APK_NAME=Sharing-${{ steps.previoustag.outputs.tag }}.apk" >> $GITHUB_ENV | |
| - name: Build App | |
| run: | | |
| npm install --prefix web/ | |
| ./gradlew assembleRelease | |
| - name: Download signed apk | |
| run: wget https://github.com/Ammar64/Sharing/releases/download/${{ env.VERSION_NAME }}/${{ env.RELEASE_APK_NAME }} | |
| - name: Verify Reproducible builds | |
| run: | | |
| cp app/build/outputs/apk/release/app-release-unsigned.apk . | |
| apksigcopier compare --unsigned ${{ env.RELEASE_APK_NAME }} app-release-unsigned.apk |