Adjust params #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TDS Compilation Performance Test | |
on: | |
push: | |
workflow_dispatch: | |
inputs: | |
ios_s3_url: | |
description: 'Full HTTPS or S3 URL of the iOS TrackerData file location' | |
required: true | |
macos_s3_url: | |
description: 'Full HTTPS or S3 URL of the macOS TrackerData file location' | |
required: true | |
jobs: | |
performance-test: | |
runs-on: macos-15-xlarge | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Select Xcode | |
run: sudo xcode-select -s /Applications/Xcode_$(<.xcode-version).app/Contents/Developer | |
- name: Build for testing | |
run: | | |
xcodebuild build-for-testing \ | |
-scheme TrackerRadarKit \ | |
-destination 'platform=macOS' | |
- name: Run performance test (iOS) | |
run: | | |
env TEST_RUNNER_TDS_UT_FILE_NAME=ios-tds.json \ | |
TEST_RUNNER_TDS_UT_URL=${{ inputs.ios_s3_url }} \ | |
TEST_RUNNER_TDS_REF_FILE_NAME=ios-tds.json \ | |
TEST_RUNNER_TDS_REF_URL=https://staticcdn.duckduckgo.com/trackerblocking/v5/current/ \ | |
xcodebuild test-without-building \ | |
-scheme TrackerRadarKit \ | |
-destination 'platform=macOS' \ | |
-only-testing:TrackerRadarKitPerformanceTests/NextTrackerDataSetPerformanceTests | |
- name: Run performance test (macOS) | |
run: | | |
env TEST_RUNNER_TDS_UT_FILE_NAME=macos-tds.json \ | |
TEST_RUNNER_TDS_UT_URL=${{ inputs.macos_s3_url }} \ | |
TEST_RUNNER_TDS_REF_FILE_NAME=macos-tds.json \ | |
TEST_RUNNER_TDS_REF_URL=https://staticcdn.duckduckgo.com/trackerblocking/v6/current/ \ | |
xcodebuild test-without-building \ | |
-scheme TrackerRadarKit \ | |
-destination 'platform=macOS' \ | |
-only-testing:TrackerRadarKitPerformanceTests/NextTrackerDataSetPerformanceTests | |