Add android x64

This commit is contained in:
uazo 2023-05-02 10:59:00 +04:00 committed by GitHub
parent 7d8f0cc0d5
commit 248956d7ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 14 deletions

View File

@ -9,10 +9,6 @@ on:
description: 'uazo/bromite SHA' description: 'uazo/bromite SHA'
required: true required: true
default: '0a8ff322d6e9d738f7b2fa52618b178081bd100d' default: '0a8ff322d6e9d738f7b2fa52618b178081bd100d'
build:
description: 'arch [arm64/x64]'
required: true
default: 'arm64'
type: type:
description: 'runner? [dev/ci]' description: 'runner? [dev/ci]'
required: true required: true
@ -22,14 +18,13 @@ env:
BROMITE_SHA: ${{ github.event.inputs.sha }} BROMITE_SHA: ${{ github.event.inputs.sha }}
REMOVEDOCKERSUPPORT: true REMOVEDOCKERSUPPORT: true
USELOCALIMAGE: true USELOCALIMAGE: true
GOMAJOBS: 60
jobs: jobs:
release: release:
runs-on: ${{ github.event.inputs.type }} runs-on: ${{ github.event.inputs.type }}
env: env:
OUTPUTFILE_ARM64: /storage/images/android/arm64/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }} OUTPUTFILE_ARM64: /storage/images/android/${{ github.event.inputs.sha }}/false/arm64/
APK: ${{ github.event.inputs.build }}_ChromePublic.apk OUTPUTFILE_X64: /storage/images/android/${{ github.event.inputs.sha }}/false/x64/
steps: steps:
- name: Prepare container - name: Prepare container
@ -71,13 +66,18 @@ jobs:
$GH release create $VERSION-$BROMITE_SHA --notes-file note -d $GH release create $VERSION-$BROMITE_SHA --notes-file note -d
# android # android arm64
sudo cp ${{ env.OUTPUTFILE_ARM64 }}/apks/ChromePublic.apk ChromePublic.apk sudo cp ${{ env.OUTPUTFILE_ARM64 }}/apks/ChromePublic.apk arm64_ChromePublic.apk
sudo chown runner ChromePublic.apk sudo chown runner arm64_ChromePublic.apk
mv ChromePublic.apk $APK echo Uploading arm64_ChromePublic
echo Uploading $APK $GH release upload $VERSION-$BROMITE_SHA arm64_ChromePublic.apk
$GH release upload $VERSION-$BROMITE_SHA $APK
# android x64
sudo cp ${{ env.OUTPUTFILE_X64 }}/apks/ChromePublic.apk x64_ChromePublic.apk
sudo chown runner x64_ChromePublic.apk
echo Uploading x64_ChromePublic
$GH release upload $VERSION-$BROMITE_SHA x64_ChromePublic.apk
echo Uploading chrome.size echo Uploading chrome.size
test $VERSION-$BROMITE_SHA $OUTPUTFILE_ARM64/chrome.size && \ test $VERSION-$BROMITE_SHA $OUTPUTFILE_ARM64/chrome.size && \
$GH release upload $VERSION-$BROMITE_SHA $OUTPUTFILE_ARM64/chrome.size $GH release upload $VERSION-$BROMITE_SHA $OUTPUTFILE_ARM64/chrome.size