HomePhabricator
Diffusion Comm 2df5130cab6f

[CI] Fix macOS GitHub CI

Description

[CI] Fix macOS GitHub CI

Summary:
ENG-5678

The general error that breaks the github CI is the same as in this issue - distutils was removed in a newer version of python and so one of the dependencies postinstall script breaks because of that. This diff fixes that by additionaly installing an older (3.10) version of python before installing the dependencies.

Note that I'm still not sure why the CI is sometimes successful but I'm hoping this should fix the errors.

INFO: Most native (written in C++) js modules are built with something called node-gyp. It's written in python and used at build time in postinstall scripts. That's why we need to mess with python.

Test Plan: Tested on a GitHub fork. Without this changes CI failed. After this changes tried running it 3 times and it succeded every time.

Reviewers: atul, ashoat, tomek

Reviewed By: ashoat

Subscribers: wyilio

Differential Revision: https://phab.comm.dev/D9760

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Nov 7 2023, 8:21 AM
Reviewer
ashoat
Differential Revision
D9760: [CI] Fix macOS GitHub CI
Parents
rCOMM52fe10d34697: [lib] Convert update data into raw update info in a spec
Branches
Unknown
Tags
Unknown

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM2df5130cab6f: [CI] Fix macOS GitHub CI (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Nov 10 2023, 5:32 AM