Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: Darwin arm64 rebuild binaries should be in cache #112319

Closed
joaomoreno opened this issue Dec 11, 2020 · 2 comments
Closed

Build: Darwin arm64 rebuild binaries should be in cache #112319

joaomoreno opened this issue Dec 11, 2020 · 2 comments
Assignees
Labels
engineering VS Code - Build / issue tracking / etc.
Milestone

Comments

@joaomoreno
Copy link
Member

- script: |
set -e
export npm_config_arch=$(VSCODE_ARCH)
export npm_config_node_gyp=$(which node-gyp)
export npm_config_build_from_source=true
export SDKROOT=/Applications/Xcode_12.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk
ls /Applications/Xcode_12.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
yarn electron-rebuild
cd ./node_modules/keytar
node-gyp rebuild
displayName: Rebuild native modules for ARM64
condition: eq(variables['VSCODE_ARCH'], 'arm64')

@deepak1556 Shouldn't these be in the node_modules build cache as well?

Also, since we're looking into reducing build time... it seems like we first build them... and then we rebuild them. Any chance we can build them right the first time?

@joaomoreno joaomoreno added this to the December/January 2021 milestone Dec 11, 2020
@joaomoreno joaomoreno added the engineering VS Code - Build / issue tracking / etc. label Dec 11, 2020
@deepak1556
Copy link
Collaborator

deepak1556 commented Dec 15, 2020

The cross compilation was not working correctly with yarn, so had to electron-rebuild which walks down the node_modules folder and rebuilds only the native modules. Haven't checked if the problem still persists, will test https://github.com/microsoft/vscode/tree/robo/cleanup_darwin_ci

@joaomoreno joaomoreno removed their assignment Feb 2, 2021
@deepak1556 deepak1556 modified the milestones: February 2021, March 2021 Feb 18, 2021
@deepak1556 deepak1556 modified the milestones: March 2021, Backlog Mar 1, 2021
@deepak1556
Copy link
Collaborator

This is completed.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
engineering VS Code - Build / issue tracking / etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants