diff --git a/.github/actions/build-electron/action.yml b/.github/actions/build-electron/action.yml index 710c0b8ac576..58a416e01f40 100644 --- a/.github/actions/build-electron/action.yml +++ b/.github/actions/build-electron/action.yml @@ -185,7 +185,7 @@ runs: if: ${{ inputs.is-release == 'true' }} run: | cd src - e d gn gen out/ffmpeg --args="import(\"//electron/build/args/ffmpeg.gn\") use_remoteexec=true $GN_EXTRA_ARGS" + gn gen out/ffmpeg --args="import(\"//electron/build/args/ffmpeg.gn\") use_remoteexec=true $GN_EXTRA_ARGS" e build --target electron:electron_ffmpeg_zip -C ../../out/ffmpeg -j $NUMBER_OF_NINJA_PROCESSES - name: Generate Hunspell Dictionaries ${{ inputs.step-suffix }} shell: bash diff --git a/.github/actions/install-build-tools/action.yml b/.github/actions/install-build-tools/action.yml index e3d1c755071f..d405dfa1cd21 100644 --- a/.github/actions/install-build-tools/action.yml +++ b/.github/actions/install-build-tools/action.yml @@ -19,3 +19,4 @@ runs: e d cipd.bat --version cp "C:\Python311\python.exe" "C:\Python311\python3.exe" fi + echo "$HOME/.electron_build_tools/third_party/depot_tools" >> $GITHUB_PATH diff --git a/.github/actions/restore-cache-azcopy/action.yml b/.github/actions/restore-cache-azcopy/action.yml index d1d9ee842881..4c34ba496340 100644 --- a/.github/actions/restore-cache-azcopy/action.yml +++ b/.github/actions/restore-cache-azcopy/action.yml @@ -97,18 +97,28 @@ runs: $TEMP_DIR=New-Item -ItemType Directory -Path temp-cache $TEMP_DIR_PATH = $TEMP_DIR.FullName C:\ProgramData\Chocolatey\bin\7z.exe -y x $src_cache -o"$TEMP_DIR_PATH" - if (Test-Path "temp-cache\src") { - Write-Host "Relocating Cache" - Remove-Item -Recurse -Force src - Move-Item temp-cache\src src - Write-Host "Deleting zip file" - Remove-Item -Force $src_cache - } - if (-Not (Test-Path "src\third_party\blink")) { - Write-Host "Cache was not correctly restored - exiting" - exit 1 - } + - name: Move Src Cache (Windows) + if: ${{ inputs.target-platform == 'win' }} + uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0 + with: + timeout_minutes: 30 + max_attempts: 3 + retry_on: error + shell: powershell + command: | + if (Test-Path "temp-cache\src") { + Write-Host "Relocating Cache" + Remove-Item -Recurse -Force src + Move-Item temp-cache\src src - Write-Host "Wiping Electron Directory" - Remove-Item -Recurse -Force src\electron \ No newline at end of file + Write-Host "Deleting zip file" + Remove-Item -Force $src_cache + } + if (-Not (Test-Path "src\third_party\blink")) { + Write-Host "Cache was not correctly restored - exiting" + exit 1 + } + + Write-Host "Wiping Electron Directory" + Remove-Item -Recurse -Force src\electron diff --git a/.github/workflows/windows-publish.yml b/.github/workflows/windows-publish.yml index 60ff169fcefa..39a9f7a7d130 100644 --- a/.github/workflows/windows-publish.yml +++ b/.github/workflows/windows-publish.yml @@ -25,7 +25,8 @@ jobs: image: ghcr.io/electron/build:${{ inputs.build-image-sha }} options: --user root --device /dev/fuse --cap-add SYS_ADMIN volumes: - - /mnt/cross-instance-cache:/mnt/cross-instance-cache + - /mnt/win-cache:/mnt/win-cache + - /var/run/sas:/var/run/sas env: GCLIENT_EXTRA_ARGS: '--custom-var=checkout_win=True' TARGET_OS: 'win'