mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
Extract merged native libraries
This commit is contained in:
parent
2712df4856
commit
a7a8fe2a2e
1 changed files with 44 additions and 7 deletions
51
.github/workflows/cd_prod.yml
vendored
51
.github/workflows/cd_prod.yml
vendored
|
@ -142,18 +142,55 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: m3_lightmeter_apk
|
name: m3_lightmeter_apk
|
||||||
|
|
||||||
|
- name: Rename apk
|
||||||
|
run: mv app-prod-release.apk m3_lightmeter.apk
|
||||||
|
|
||||||
|
- uses: ncipollo/release-action@v1.12.0
|
||||||
|
with:
|
||||||
|
artifacts: "m3_lightmeter.apk"
|
||||||
|
skipIfReleaseExists: true
|
||||||
|
tag: "v${{ github.event.inputs.version }}"
|
||||||
|
|
||||||
|
extract-merged-native-libs:
|
||||||
|
name: Extract merged native libraries
|
||||||
|
needs: [build]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
- name: Download app bundle
|
- name: Download app bundle
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: m3_lightmeter_bundle
|
name: m3_lightmeter_bundle
|
||||||
|
|
||||||
- name: Rename artifacts
|
- name: Extract & zip merged_native_libs
|
||||||
run: |
|
run: |
|
||||||
mv app-prod-release.apk m3_lightmeter.apk
|
unzip app-prod-release.aab
|
||||||
mv app-prod-release.aab m3_lightmeter.aab
|
(cd base/lib && zip -r "$OLDPWD/merged_native_libs.zip" .)
|
||||||
|
|
||||||
- uses: ncipollo/release-action@v1.12.0
|
- name: Zip app bundle and merged_native_libs
|
||||||
|
run: zip m3_lightmeter_release.zip app-prod-release.aab merged_native_libs.zip
|
||||||
|
|
||||||
|
- name: Upload merged_native_libs.zip to artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
artifacts: "m3_lightmeter.apk, m3_lightmeter.aab"
|
name: m3_lightmeter_release
|
||||||
skipIfReleaseExists: true
|
path: m3_lightmeter_release.zip
|
||||||
tag: "v${{ github.event.inputs.version }}"
|
|
||||||
|
# TODO: Automate Google Play releases creation
|
||||||
|
create-google-play-release:
|
||||||
|
if: false
|
||||||
|
name: Create Google Play release
|
||||||
|
needs: [build, extract-merged-native-libs]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Download app bundle
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: m3_lightmeter_bundle
|
Loading…
Reference in a new issue