Repository navigation
66 lines (55 loc) · 1.62 KB
/
Copy pathrelease.yml
File metadata and controls
66 lines (55 loc) · 1.62 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
name: release
on:
push:
tags:
- "android-python-py*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
abi:
- x86_64
- arm64-v8a
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build builder image
run: docker compose build builder
- name: Start builder container
run: docker compose up -d builder
- name: Build artifacts
run: docker compose exec -T builder bash -lc "ANDROID_ABI=${{ matrix.abi }} ./scripts/build-all.sh"
- name: Upload release staging artifacts
uses: actions/upload-artifact@v4
with:
name: release-${{ matrix.abi }}
path: |
output/dist/python-android-${{ matrix.abi }}-*.tar.gz
output/dist/SHA256SUMS
output/dist/ARTIFACTS.txt
publish:
runs-on: ubuntu-24.04
needs: build
steps:
- name: Download all release artifacts
uses: actions/download-artifact@v4
with:
path: release-artifacts
pattern: release-*
merge-multiple: true
- name: Show release payload
run: ls -lh release-artifacts
- name: Publish GitHub release assets
uses: softprops/action-gh-release@v2
with:
files: |
release-artifacts/python-android-x86_64-*.tar.gz
release-artifacts/python-android-arm64-v8a-*.tar.gz
release-artifacts/SHA256SUMS
release-artifacts/ARTIFACTS.txt