Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Fix dev branch CircleCI #2715

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Fix dev branch CircleCI #2715

wants to merge 1 commit into from

Commits on Jun 29, 2022

  1. Fix dev branch CircleCI

    Currently, all dev publish_docs jobs are failing the Java 11 requirement (https://github.com/facebook/buck/blob/dev/build.xml#L365-L367 ).
    
    A lot of things need to be changed to pass that requirement:
    - Install OpenJDK 11 instead of 8
    - Install new Android command-line tools. The old SDK tools don't support JDK 8 (https://stackoverflow.com/a/65782803 ). Oddly, the *new* tools don't install to the right location (https://stackoverflow.com/a/67413427 ), so they need to be moved around a little before they'll work.
    - Install Python 3.9.4 (required by Ant)
    - Build Buck! Release-branch builds require Java 8, so we can't use those and hope to pass the version check.
    - Pass down our local Buck executable to docs/publish.sh and docs/soyweb-prod.sh. By default, these scripts will try to use the Ant-bootstrapped Java 8 Buck instead of our locally built Java 11 Buck.
    
    This has been tested by adding a couple tweaks in a separate branch (https://github.com/egpast/buck/commits/dev-force-circleci ) to force publish_docs to run on commits and stop it from actually publishing, and then confirming that CircleCI passes (https://app.circleci.com/pipelines/github/egpast/buck/25/workflows/b049df7e-9e0c-49a8-95d5-eee82aeb40bc/jobs/17 ).
    egpast committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    9ca498e View commit details
    Browse the repository at this point in the history