diff options
| author | Albin <albin@mullvad.net> | 2025-07-04 15:32:35 +0200 |
|---|---|---|
| committer | Albin <albin@mullvad.net> | 2025-07-08 12:28:35 +0200 |
| commit | 7af8d5021f4800d91f654cd587346a021e020c17 (patch) | |
| tree | f48b45544921d828c8e2afe6adeee3eb9e9e9eaa | |
| parent | 0cfdadcbc7fcef7ed4c9a883b724790dbd1b052b (diff) | |
| download | mullvadvpn-7af8d5021f4800d91f654cd587346a021e020c17.tar.xz mullvadvpn-7af8d5021f4800d91f654cd587346a021e020c17.zip | |
Clean up reproducible workflow
Improves readability and changes to a more generic approach
of handling multiple artifacts, which allows for extending
the range of artifacts we compare.
| -rw-r--r-- | .github/workflows/android-reproducible-builds.yml | 41 |
1 files changed, 17 insertions, 24 deletions
diff --git a/.github/workflows/android-reproducible-builds.yml b/.github/workflows/android-reproducible-builds.yml index 9e02ace505..0650dfd687 100644 --- a/.github/workflows/android-reproducible-builds.yml +++ b/.github/workflows/android-reproducible-builds.yml @@ -42,8 +42,8 @@ jobs: outputs: COMMIT_HASH: ${{ steps.hash.outputs.commit_hash }} - build-fdroid-app: - name: Build fdroid container + build-using-container: + name: Build fdroid variant using container runs-on: ubuntu-latest needs: set-up-env steps: @@ -63,13 +63,13 @@ jobs: - name: Upload apks uses: actions/upload-artifact@v4 with: - name: container-app + name: apk-container path: android/app/build/outputs/apk/ossProd/fdroid/app-oss-prod-fdroid-unsigned.apk if-no-files-found: error retention-days: 7 - build-fdroid-app-server: - name: Build fdroid with fdroid server + build-using-fdroidserver: + name: Build fdroid variant using fdroidserver runs-on: ubuntu-latest needs: set-up-env steps: @@ -130,7 +130,7 @@ jobs: - name: Upload apks uses: actions/upload-artifact@v4 with: - name: fdroidserver-app + name: apk-fdroidserver path: | build/net\.mullvad\.mullvadvpn/android/app/build/outputs/apk/ossProd/fdroid/app-oss-prod-fdroid-unsigned.apk if-no-files-found: error @@ -139,36 +139,29 @@ jobs: compare-builds: name: Check builds runs-on: ubuntu-latest - needs: [build-fdroid-app, build-fdroid-app-server] + needs: [build-using-container, build-using-fdroidserver] steps: - - name: Download container apk + - name: Download artifacts uses: actions/download-artifact@v4 with: - name: container-app - path: container - - - name: Download server apk - uses: actions/download-artifact@v4 - with: - name: fdroidserver-app - path: fdroidserver + path: artifacts + pattern: apk-* + merge-multiple: false - name: Print checksums - run: | - echo "Container build checksum" - md5sum container/app-oss-prod-fdroid-unsigned.apk - echo "Fdroidserver build checksum" - md5sum fdroidserver/app-oss-prod-fdroid-unsigned.apk + working-directory: ./artifacts + run: sha256sum */* - name: Compare files - run: diff container/app-oss-prod-fdroid-unsigned.apk fdroidserver/app-oss-prod-fdroid-unsigned.apk + working-directory: ./artifacts + run: diff apk-container/app-oss-prod-fdroid-unsigned.apk apk-fdroidserver/app-oss-prod-fdroid-unsigned.apk # Included in this workflow since it's the only place # release artifacts are built. Should eventually be moved. check-permissions: name: Check APK permissions runs-on: ubuntu-latest - needs: [set-up-env, build-fdroid-app] + needs: [set-up-env, build-using-container] steps: - name: Install apktool run: sudo apt-get install -y apktool @@ -181,7 +174,7 @@ jobs: - name: Download container apk uses: actions/download-artifact@v4 with: - name: container-app + name: apk-container - name: Extract resources run: | |
