This repository was archived by the owner on Mar 26, 2026. It is now read-only.
Repository navigation
100 lines (87 loc) · 3.06 KB
/
Copy pathverify-apk.yml
File metadata and controls
100 lines (87 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Verify APK
on:
workflow_dispatch:
inputs:
tag:
description: Git tag or branch to rebuild
required: true
type: string
official_apk_url:
description: URL to the official APK (public or accessible with default token)
required: true
type: string
base_image_tag:
description: gem-android-base tag in GHCR
required: false
default: ""
type: string
concurrency:
group: verify-apk-${{ github.event.inputs.tag || github.ref }}
cancel-in-progress: false
jobs:
verify:
name: Verify APK
runs-on: macos-latest
timeout-minutes: 360
permissions:
contents: read
packages: read
env:
DOCKER_BUILDKIT: 1
DOCKER_DEFAULT_PLATFORM: linux/arm64
VERIFY_BASE_IMAGE: ghcr.io/${{ github.repository_owner }}/gem-android-base
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Docker (Colima)
run: |
brew install docker docker-buildx colima
mkdir -p ~/.docker/cli-plugins
ln -sfn $(brew --prefix)/opt/docker-buildx/bin/docker-buildx ~/.docker/cli-plugins/docker-buildx
colima start --cpu 4 --memory 8 --arch aarch64
- name: Read base image tag (default)
id: base_tag
run: |
DEFAULT_TAG=$(cat reproducible/base_image_tag.txt)
echo "tag=${DEFAULT_TAG}" >> "$GITHUB_OUTPUT"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install apksigcopier and diffoscope
run: |
python -m pip install --upgrade apksigcopier diffoscope
python -m pip show apksigcopier || true
diffoscope --version || true
- name: Create local.properties for CI
run: |
echo "gpr.username=${{ github.actor }}" > local.properties
echo "gpr.token=${{ secrets.GITHUB_TOKEN }}" >> local.properties
echo "# Automatically generated for verify-apk workflow" >> local.properties
- name: Download official APK
run: |
curl -L --fail --retry 3 --retry-delay 5 "${{ inputs.official_apk_url }}" -o official.apk
- name: Run verify_apk.py
env:
VERIFY_BASE_TAG: ${{ inputs.base_image_tag != '' && inputs.base_image_tag || steps.base_tag.outputs.tag }}
run: |
python reproducible/verify_apk.py "${{ inputs.tag }}" official.apk
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: verify-apk-${{ inputs.tag }}
path: |
artifacts/reproducible/${{ inputs.tag }}/*.apk
artifacts/reproducible/${{ inputs.tag }}/*.html
retention-days: 7