mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Picks up the stderr logging for ERROR_INVALID_PARAMETER retries so they're visible in the Windows build step output rather than only in the glog .WARNING file.
49 lines
2.2 KiB
YAML
49 lines
2.2 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=1b7bd25dae4a780bb3170fff56c9327b53aaf7eb
|
|
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
|
|
- name: Install patched siso (Windows)
|
|
# Overrides the CIPD siso with a build from electron/siso that carries a
|
|
# retry for transient ERROR_INVALID_PARAMETER during the subninja scan on
|
|
# container bind-mounted out/ directories. Remove once the fix has rolled
|
|
# into Chromium's siso_version.
|
|
if: ${{ runner.os == 'Windows' }}
|
|
shell: bash
|
|
env:
|
|
ELECTRON_SISO_URL: https://github.com/electron/siso/releases/download/v1.5.7-electron.2/siso-windows-amd64.exe
|
|
ELECTRON_SISO_SHA256: 0e6b754820be3324d5ea4ca3af3634b4cfcf806d89140d78fec4e2a8ef636c9d
|
|
run: |
|
|
set -eo pipefail
|
|
mkdir -p /c/electron-siso
|
|
curl --fail --retry 3 -sSL "$ELECTRON_SISO_URL" -o /c/electron-siso/siso.exe
|
|
echo "$ELECTRON_SISO_SHA256 /c/electron-siso/siso.exe" | sha256sum --check --strict -
|
|
echo "SISO_PATH=C:\\electron-siso\\siso.exe" >> "$GITHUB_ENV"
|