mirror of
https://github.com/desktop/desktop
synced 2024-10-02 14:23:59 +00:00
Remove unnecessary CI step for Windows arm64
Will it work? 🤞
This commit is contained in:
parent
f63bfdae90
commit
779a9fd2ef
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -95,12 +95,6 @@ jobs:
|
|||
node-version: ${{ env.NODE_VERSION }}
|
||||
cache: yarn
|
||||
|
||||
# This step can be removed as soon as official Windows arm64 builds are published:
|
||||
# https://github.com/nodejs/build/issues/2450#issuecomment-705853342
|
||||
- name: Get NodeJS node-gyp lib for Windows arm64
|
||||
if: ${{ matrix.os == 'windows-2019' && matrix.arch == 'arm64' }}
|
||||
run: .\script\download-nodejs-win-arm64.ps1 ${{ env.NODE_VERSION }}
|
||||
|
||||
- name: Install and build dependencies
|
||||
run: yarn
|
||||
env:
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
# This script can be removed as soon as official Windows arm64 builds are published:
|
||||
# https://github.com/nodejs/build/issues/2450#issuecomment-705853342
|
||||
|
||||
$nodeVersion = $args[0]
|
||||
|
||||
If ($null -eq $nodeVersion) {
|
||||
Write-Error "No NodeJS version given as argument to this file. Run it like download-nodejs-win-arm64.ps1 12.10.1"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$url = "https://unofficial-builds.nodejs.org/download/release/v$nodeVersion/win-arm64/node.lib"
|
||||
$cacheFolder = "$env:LOCALAPPDATA\node-gyp\Cache\$nodeVersion\arm64"
|
||||
|
||||
If (!(Test-Path $cacheFolder)) {
|
||||
New-Item -ItemType Directory -Force -Path $cacheFolder
|
||||
}
|
||||
|
||||
$output = "$cacheFolder\node.lib"
|
||||
$start_time = Get-Date
|
||||
|
||||
Invoke-WebRequest -Uri $url -OutFile $output
|
||||
Write-Output "Downloaded arm64 NodeJS lib $nodeVersion in $((Get-Date).Subtract($start_time).Seconds) second(s)"
|
Loading…
Reference in a new issue