add android keystore support

This commit is contained in:
Carmelo Messina
2023-07-19 14:23:32 +02:00
parent 1b3f3ea7a3
commit 8e7624c69c
2 changed files with 18 additions and 6 deletions
@@ -1,4 +1,4 @@
name: Build Bromite
name: Build Cromite
permissions:
actions: none
checks: none
@@ -15,7 +15,7 @@ on:
workflow_dispatch:
inputs:
sha:
description: 'uazo/bromite SHA'
description: 'uazo/cromite SHA'
required: true
default: ''
target_os:
@@ -178,6 +178,8 @@ jobs:
# compile in debug mode
TARGET_ISDEBUG: ${{ github.event.inputs.debug }}
TARGET_OS: ${{ github.event.inputs.target_os }}
USE_KEYSTORE: true
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
volumes:
- /storage/images/android/${{ github.event.inputs.sha }}/${{ github.event.inputs.debug }}/arm64:/home/lg/working_dir/chromium/src/out/bromite
- /storage/images/android/${{ github.event.inputs.sha }}/${{ github.event.inputs.debug }}/x64:/home/lg/working_dir/chromium/src/out/bromite_x64
@@ -219,6 +221,10 @@ jobs:
sudo chown lg /run/user/1000/
sudo chmod g-rxw /run/user/1000/
sudo chmod o-rxw /run/user/1000/
# prepare keystore
echo "${{ secrets.KEYSTORE }}" > ~/cromite.keystore.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch ~/cromite.keystore.asc > ~/cromite.keystore
- name: Build Bromite Android arm64
if: ${{ (github.event.inputs.target_os == 'android' || github.event.inputs.target_os == 'all') && (github.event.inputs.build == 'arm64' || github.event.inputs.build == 'all') }}