update test-make.yaml
Some checks failed
Generated APK AAB (Upload - Create Artifact To Github Action) / build (push) Failing after 7m31s
Some checks failed
Generated APK AAB (Upload - Create Artifact To Github Action) / build (push) Failing after 7m31s
This commit is contained in:
parent
e8b78cf725
commit
6c402fa15c
@ -12,12 +12,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
# Set Current Date As Env Variable
|
# Set Current Date As Env Variable
|
||||||
- name: Set current date as env variable
|
# - name: Set current date as env variable
|
||||||
run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
|
# run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
|
||||||
|
|
||||||
# Set Repository Name As Env Variable
|
# Set Repository Name As Env Variable
|
||||||
- name: Set repository name as env variable
|
# - name: Set repository name as env variable
|
||||||
run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
|
# run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set Up JDK
|
- name: Set Up JDK
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
@ -31,35 +31,42 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
|
|
||||||
- name: Setup Android SDK
|
- name: test SDK
|
||||||
uses: android-actions/setup-android@v3
|
run: |
|
||||||
with:
|
curl --output ./idesetup https://github.com/AndroidIDEOfficial/androidide-tools/raw/main/scripts/idesetup
|
||||||
packages: 'platform-tools'
|
chmod +x ./idesetup
|
||||||
|
/bin/bash ./idesetup
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
# - name: Setup Android SDK
|
||||||
|
# uses: android-actions/setup-android@v3
|
||||||
|
# with:
|
||||||
|
# packages: 'platform-tools'
|
||||||
|
|
||||||
# https://github.com/lzhiyong/android-sdk-tools/releases
|
# https://github.com/lzhiyong/android-sdk-tools/releases
|
||||||
- name: Install ADB
|
# - name: Install ADB
|
||||||
continue-on-error: true
|
# continue-on-error: true
|
||||||
run: |
|
# run: |
|
||||||
curl --compressed --location --output tools.zip https://github.com/lzhiyong/android-sdk-tools/releases/download/34.0.3/android-sdk-tools-static-aarch64.zip
|
# curl --compressed --location --output tools.zip https://github.com/lzhiyong/android-sdk-tools/releases/download/34.0.3/android-sdk-tools-static-aarch64.zip
|
||||||
unzip -d tools -n -q tools.zip
|
# unzip -d tools -n -q tools.zip
|
||||||
rm -f tools.zip
|
# rm -f tools.zip
|
||||||
cp tools/platform-tools/adb $ANDROID_HOME/platform-tools/adb
|
# cp tools/platform-tools/adb $ANDROID_HOME/platform-tools/adb
|
||||||
rm -fr tools
|
# rm -fr tools
|
||||||
shell: bash
|
# shell: bash
|
||||||
|
|
||||||
# https://ci.android.com/builds/branches/aosp-emu-master-dev/grid
|
# https://ci.android.com/builds/branches/aosp-emu-master-dev/grid
|
||||||
- name: Install Emulator
|
# - name: Install Emulator
|
||||||
run: |
|
# run: |
|
||||||
curl --compressed --location --output emulator.zip $(curl --location --silent https://ci.android.com/builds/submitted/11162281/emulator-linux_aarch64/latest/sdk-repo-linux_aarch64-emulator-11162281.zip | grep -o 'https://storage[^"]*' | sed 's/\\u0026/\&/g')
|
# curl --compressed --location --output emulator.zip $(curl --location --silent https://ci.android.com/builds/submitted/11162281/emulator-linux_aarch64/latest/sdk-repo-linux_aarch64-emulator-11162281.zip | grep -o 'https://storage[^"]*' | sed 's/\\u0026/\&/g')
|
||||||
unzip -d $ANDROID_HOME -n -q emulator.zip
|
# unzip -d $ANDROID_HOME -n -q emulator.zip
|
||||||
rm -f emulator.zip
|
# rm -f emulator.zip
|
||||||
cp $ANDROID_HOME/platform-tools/package.xml $ANDROID_HOME/emulator/package.xml
|
# cp $ANDROID_HOME/platform-tools/package.xml $ANDROID_HOME/emulator/package.xml
|
||||||
sed -i \
|
# sed -i \
|
||||||
-e 's|path="[a-zA-Z-]*"|path="emulator"|g' \
|
# -e 's|path="[a-zA-Z-]*"|path="emulator"|g' \
|
||||||
-e 's|<display-name>Android .*<\/display-name>|<display-name>Android Emulator<\/display-name>|g' \
|
# -e 's|<display-name>Android .*<\/display-name>|<display-name>Android Emulator<\/display-name>|g' \
|
||||||
$ANDROID_HOME/emulator/package.xml
|
# $ANDROID_HOME/emulator/package.xml
|
||||||
echo 'Vulkan = off\nGLDirectMem = on' >> ~/.android/advancedFeatures.ini
|
# echo 'Vulkan = off\nGLDirectMem = on' >> ~/.android/advancedFeatures.ini
|
||||||
shell: bash
|
# shell: bash
|
||||||
|
|
||||||
- name: Install SDK Tools
|
- name: Install SDK Tools
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user