Remove slashes from AWS Device Farm uploads (#1930)

This commit is contained in:
Bart Louwers
2023-12-07 21:43:55 +01:00
committed by GitHub
parent edd478ee33
commit ae4120d953
3 changed files with 11 additions and 7 deletions

View File

@@ -112,7 +112,7 @@ runs:
--app-arn ${{ env.app_arn }} \
--device-pool-arn ${{ inputs.AWS_DEVICE_FARM_DEVICE_POOL_ARN }} \
--test type=${{ inputs.testType }},testPackageArn=${{ env.test_package_arn }}${{ inputs.testFilter && ',filter=' }}${{ inputs.testFilter }} \
--execution-configuration jobTimeoutMinutes=28800,videoCapture=false \
--execution-configuration jobTimeoutMinutes=480,videoCapture=false \
${{ inputs.externalData && '--configuration extraDataPackageArn=' }}${{ inputs.externalData }} \
--output text --query "run.arn")"

View File

@@ -118,19 +118,23 @@ jobs:
echo "No secrets.MAPLIBRE_DEVELOPER_CONFIG_XML variable set, not copying..."
fi
- name: Build Benchmark
- name: Build Benchmark, copy to platform/android
if: github.ref != 'refs/heads/main'
run: |
./gradlew assembleDrawableRelease assembleDrawableReleaseAndroidTest
cp MapboxGLAndroidSDKTestApp/build/outputs/apk/drawable/release/MapboxGLAndroidSDKTestApp-drawable-release.apk .
cp MapboxGLAndroidSDKTestApp/build/outputs/apk/androidTest/drawable/release/MapboxGLAndroidSDKTestApp-drawable-release-androidTest.apk .
- uses: actions/upload-artifact@v3
- name: Create artifact for benchmark APKs
uses: actions/upload-artifact@v3
if: github.ref != 'refs/heads/main'
with:
if-no-files-found: error
name: benchmarkAPKs
path: |
platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/drawable/release/MapboxGLAndroidSDKTestApp-drawable-release.apk
platform/android/MapboxGLAndroidSDKTestApp/build/outputs/apk/androidTest/drawable/release/MapboxGLAndroidSDKTestApp-drawable-release-androidTest.apk
platform/android/MapboxGLAndroidSDKTestApp-drawable-release.apk
platform/android/MapboxGLAndroidSDKTestApp-drawable-release-androidTest.apk
- name: Build UI tests
if: github.ref == 'refs/heads/main'

View File

@@ -14,8 +14,8 @@ jobs:
{artifactName: android-render-tests, testFile: RenderTests.apk, appFile: RenderTestsApp.apk, name: "Android Render Tests"},
{
artifactName: benchmarkAPKs,
testFile: "androidTest/drawable/release/MapboxGLAndroidSDKTestApp-drawable-release-androidTest.apk",
appFile: "drawable/release/MapboxGLAndroidSDKTestApp-drawable-release.apk",
testFile: "MapboxGLAndroidSDKTestApp-drawable-release-androidTest.apk",
appFile: "MapboxGLAndroidSDKTestApp-drawable-release.apk",
name: "Android Benchmark",
testFilter: "org.maplibre.android.benchmark.Benchmark",
# echo '{"styleNames": [...], "styleURLs": [...], "resultsAPI: "..." }' > benchmark-input.json