Skip to content

Commit

Permalink
test baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
makeevrserg committed Jul 18, 2024
1 parent 2d35b47 commit 5cfde5f
Show file tree
Hide file tree
Showing 2 changed files with 317 additions and 296 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/call-create-baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
jobs:
baseline_file:
name: Upload baseline profile file
runs-on: [self-hosted, AndroidShell]
runs-on: [ self-hosted, AndroidShell ]
outputs:
BUILD_VARIANT_NAME: ${{ steps.create_uppercase_variant.outputs.BUILD_VARIANT_NAME }}
BASELINE_FILE_ID: ${{ steps.create_baseline_file_id.outputs.BASELINE_FILE_ID }}
Expand Down Expand Up @@ -71,7 +71,6 @@ jobs:
gradlew_full_task="$path:$task_name $no_test_param --stacktrace"
echo "BASELINE_TASK=$gradlew_full_task" >> $GITHUB_OUTPUT
# print all outputs
- name: Print outputs of current baseline task
run: |
Expand All @@ -81,9 +80,30 @@ jobs:
echo "BASELINE_FILE_PATH ${{ steps.create_baseline_file_path.outputs.BASELINE_FILE_PATH }}"
echo "BASELINE_TASK ${{ steps.create_baseline_task.outputs.BASELINE_TASK }}"
- name: Setup libx11
run: |
export DEBIAN_FRONTEND=noninteractive;
sudo apt update;
sudo apt install -y libx11-6;
- name: Setup Platform-android-34
run: |
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "platforms;android-34"
# steps.share_android_home.ANDROID_HOME
- name: Share ANDROID_HOME location
id: share_android_home
run: |
echo "ANDROID_HOME=$ANDROID_HOME" >> $GITHUB_OUTPUT
- name: Print android home
run: |
sudo echo ${{ steps.share_android_home.ANDROID_HOME }}
sudo ls ${{ steps.share_android_home.ANDROID_HOME }}
- name: Run baseline profiles
run: |
./gradlew ${{ steps.create_baseline_task.outputs.BASELINE_TASK }}
sudo ANDROID_SDK_ROOT=${{ steps.share_android_home.ANDROID_HOME }} ANDROID_HOME=${{ steps.share_android_home.ANDROID_HOME }} ANDROID_AVD_HOME=${{ steps.share_android_home.ANDROID_HOME }}/avd ./gradlew ${{ steps.create_baseline_task.outputs.BASELINE_TASK }}
- uses: actions/upload-artifact@master
name: "Upload baseline file"
Expand Down
Loading

0 comments on commit 5cfde5f

Please sign in to comment.