mirror of
https://github.com/electron/electron.git
synced 2026-01-07 22:54:25 -05:00
32 lines
1.3 KiB
YAML
32 lines
1.3 KiB
YAML
name: 'Install Build Tools'
|
|
description: 'Installs an exact SHA of build tools'
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install Build Tools
|
|
shell: bash
|
|
run: |
|
|
if [ "$(expr substr $(uname -s) 1 10)" == "MSYS_NT-10" ]; then
|
|
git config --global core.filemode false
|
|
git config --global core.autocrlf false
|
|
git config --global branch.autosetuprebase always
|
|
git config --global core.fscache true
|
|
git config --global core.longpaths true
|
|
git config --global core.preloadindex true
|
|
git config --global core.longpaths true
|
|
fi
|
|
export BUILD_TOOLS_SHA=8559e5d325d61f195a255f41077ffc9e5b70b0e5
|
|
npm i -g @electron/build-tools
|
|
# Update depot_tools to ensure python
|
|
e d update_depot_tools
|
|
e auto-update disable
|
|
# Disable further updates of depot_tools
|
|
e d auto-update disable
|
|
if [ "$(expr substr $(uname -s) 1 10)" == "MSYS_NT-10" ]; then
|
|
e d cipd.bat --version
|
|
cp "C:\Python311\python.exe" "C:\Python311\python3.exe"
|
|
echo "C:\Users\ContainerAdministrator\.electron_build_tools\third_party\depot_tools" >> $GITHUB_PATH
|
|
else
|
|
echo "$HOME/.electron_build_tools/third_party/depot_tools" >> $GITHUB_PATH
|
|
echo "$HOME/.electron_build_tools/third_party/depot_tools/python-bin" >> $GITHUB_PATH
|
|
fi |