Skip to content

Commit

Permalink
chore: filter wda builds (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgraham authored Oct 25, 2020
1 parent 19d90f1 commit 37ed9c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci-jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
parameters:
vmImage: 'macOS-10.15'
name: 'macOS_10_15'
excludeXcode: '11.6.0,11.5.0,11.4.0,11.1.0,11.0.0,10.3.0'
excludeXcode: '10.3.0,10.3,11.3,11.4,12'
- template: ./templates/build.yml
parameters:
# Exclude Xcode versions that were already covered in 10.15
Expand Down
9 changes: 9 additions & 0 deletions ci-jobs/scripts/build-webdriveragents.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,17 @@ async function buildAndUploadWebDriverAgents () {

for (let xcodePath of xcodePaths) {
if (xcodePath.includes('beta')) {
log.info(`Skipping beta Xcode '${xcodePath}'`);
continue;
}

// Skip if .0 because redundant (example: skip 11.4.0 because it already does 11.4)
const [, , patch] = xcodePath.split('.');
if (patch === '0') {
log.info(`Skipping xcode '${xcodePath}'`);
continue
}

// Build webdriveragent for this xcode version
log.info(`Running xcode-select for '${xcodePath}'`);
await exec('sudo', ['xcode-select', '-s', `/Applications/${xcodePath}/Contents/Developer`]);
Expand Down

0 comments on commit 37ed9c4

Please sign in to comment.